/* JawcoldMonitor - strona produktu. Kolory i fonty jak w panelu aplikacji (2.0). */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }

:root {
  --bg: #eef2f5;
  --surface: #fff;
  --surface-2: #f3f6f8;
  --border: #dde4ea;
  --navy: #0f1f2e;
  --navy-2: #16293b;
  --navy-line: rgba(255, 255, 255, .08);
  --ink: #14212c;
  --ink-body: #334452;
  --ink-muted: #6b7c8a;
  --on-navy: #c9d4de;
  --accent: #1f6fb2;
  --accent-strong: #195c94;
  --accent-soft: #e3effa;
  --good: #22a06b;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #5aa2e0; outline-offset: 2px; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }

/* --- nagłówek --- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 31, 46, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.top-in { display: flex; align-items: center; gap: 2rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--on-navy); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: #fff; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* --- hero: granatowe tło z siatką jak ekran logowania panelu --- */
.hero {
  background:
    linear-gradient(var(--navy-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 80% 20%, #1c3a57 0%, var(--navy) 60%);
  color: var(--on-navy);
  overflow: hidden;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero .eyebrow { color: #6fb2ec; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
.lead { margin-top: 1.2rem; font-size: 1.08rem; max-width: 36rem; }
.lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(34, 160, 107, .25); }
.hero-facts b { color: #fff; font-weight: 600; }

.hero-shots { position: relative; padding: 0 0 2.5rem 0; }
.frame { position: relative; margin: 0; background: var(--navy-2); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #1d3347; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.frame-browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.frame-phone {
  position: absolute; right: -8px; bottom: 0; width: 26%; min-width: 120px;
  border-radius: 22px; border: 6px solid #0a1621;
}
.frame-phone img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .frame-phone { right: 4px; }
}

/* --- sekcje --- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-lead { margin-top: .9rem; max-width: 42rem; color: var(--ink-muted); font-size: 1.05rem; }
.section > .wrap > h2 + .features,
.section > .wrap > .section-lead + .gallery,
.section > .wrap > .section-lead + .brands { margin-top: 2.5rem; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.features article { background: var(--surface); padding: 1.8rem; }
.features svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 1rem; }
.features h3 { margin-bottom: .5rem; }
.features p { font-size: .95rem; }

/* --- galeria --- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.shot { margin: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  position: relative; background: var(--surface-2); cursor: zoom-in; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 33, 44, .06), 0 8px 24px -12px rgba(20, 33, 44, .18);
  transition: transform .2s, box-shadow .2s;
}
.shot button:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20, 33, 44, .06), 0 16px 32px -12px rgba(20, 33, 44, .28); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot figcaption { margin-top: .8rem; font-size: .93rem; color: var(--ink-muted); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.phones { grid-column: 1 / -1; display: flex; gap: 1.6rem; justify-content: center; align-items: flex-start; }
.shot-phone { width: min(220px, 45%); }
.shot-phone button { border-radius: 18px; border: 5px solid var(--navy); }
.shot-phone img { aspect-ratio: 390 / 844; object-position: top; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Brak pliku zrzutu: zamiast ikony błędu etykieta na tle siatki. */
img.missing { visibility: hidden; }
[data-missing] {
  cursor: default;
  background:
    linear-gradient(rgba(31, 111, 178, .1) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(31, 111, 178, .1) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface-2);
}
[data-missing]::after {
  content: attr(data-missing); position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-muted); font-size: .9rem; font-weight: 600;
}
.frame[data-missing] { background-color: var(--navy-2); }
.frame[data-missing]::after { color: var(--on-navy); }

/* --- urządzenia --- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.brands div { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.brands h3 { margin-bottom: .3rem; }
.brands p { font-size: .9rem; color: var(--ink-muted); }

/* --- wdrożenie --- */
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #6fb2ec; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.6rem; counter-reset: step; }
.steps li { position: relative; padding: 1.6rem; border: 1px solid var(--navy-line); border-radius: var(--radius); background: var(--navy-2); }
.step-n { font: 600 2rem/1 "JetBrains Mono", ui-monospace, monospace; color: #6fb2ec; display: block; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { font-size: .95rem; }

/* --- kontakt --- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.contact-card { display: grid; gap: 1rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600;
  transition: border-color .15s;
}
.contact-row:hover { border-color: var(--accent); }
.contact-row svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.contact-row small { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }

/* --- stopka --- */
.foot { background: var(--navy); color: var(--ink-muted); font-size: .88rem; border-top: 1px solid var(--navy-line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.4rem; }

/* --- powiększenie zrzutu --- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 17, 26, .94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; padding: 3.5rem 4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: var(--on-navy); font-size: .95rem; text-align: center; max-width: 50rem; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .lightbox figure { padding: 3.5rem .8rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot button, .btn, .contact-row { transition: none; }
}
