/* Wspólny CSS wszystkich stron (wcześniej powielony w każdym pliku HTML). */
  /* czcionka z własnego serwera (bez Google Fonts): polskie litery osobno, ładują się tylko gdy są potrzebne */
  @font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/fonts/noto-sans-pl.woff2) format("woff2"); unicode-range: U+0100-017F; }
  @font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/fonts/noto-sans-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  :root {
    --bg: #0a121e;
    --bg2: #111c2b;
    --card: #152234;
    --line: #23344b;
    --text: #f2f5f9;
    --muted: #d4dde9;
    --sky: #00aaff;
    --violet: #6b6bff;
    --sun: #ffd400;
    --ok: #3ddc84;
    --r: 18px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 19px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  }
  a { color: var(--sky); }
  img { max-width: 100%; height: auto; display: block; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
  h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
  h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
  h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
  h3 { font-size: 1.3rem; font-weight: 600; }
  p { margin: 0 0 1em; }
  .muted { color: var(--muted); }
  section { padding: 72px 0; }
  section.alt { background: var(--bg2); }

  /* pasek nad nagłówkiem */
  .topnote { background: #060c15; border-bottom: 1px solid var(--line); text-align: center; padding: 8px 16px; font-size: 1rem; color: var(--muted); }
  .topnote a { color: var(--sky); font-weight: 700; white-space: nowrap; }
  /* ptaszki przy cenie */
  ul.ticks { list-style: none; padding: 0; margin: 16px 0 4px; }
  ul.ticks li { position: relative; padding: 4px 0 4px 34px; font-weight: 600; }
  ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #002b14;
    display: grid; place-items: center; font-size: .85rem; font-weight: 700; }

  /* nagłówek */
  header { position: sticky; top: 0; z-index: 10; background: rgba(10, 18, 30, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; gap: 20px; height: 68px; }
  .bar .logo img { height: 48px; width: auto; }
  nav { display: flex; gap: 22px; margin-left: auto; }
  nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
  nav a:hover { color: var(--sky); }
  .buybtn { background: #ff8c1a; border: 2px solid #ff8c1a; color: #1f0e00; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
  .buybtn:hover { background: #ffa64d; border-color: #ffa64d; }
  .lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
  .lang a { color: var(--muted); font-weight: 700; font-size: .95rem; padding: 6px 12px; text-decoration: none; }
  .lang a:hover { color: var(--text); }
  .lang [aria-current] { background: var(--sky); color: #001827; }
  /* menu na telefonie: przycisk z trzema kreskami, PL/EN w środku menu */
  .menubtn { display: none; flex: none; width: 46px; height: 46px; padding: 0; place-items: center; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; }
  .menubtn span, .menubtn span::before, .menubtn span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background .2s; }
  .menubtn span { position: relative; }
  .menubtn span::before, .menubtn span::after { content: ""; position: absolute; left: 0; }
  .menubtn span::before { top: -7px; }
  .menubtn span::after { top: 7px; }
  header.open .menubtn span { background: transparent; }
  header.open .menubtn span::before { transform: translateY(7px) rotate(45deg); }
  header.open .menubtn span::after { transform: translateY(-7px) rotate(-45deg); }
  nav .lang { display: none; }
  @media (max-width: 1020px) {
    .bar { gap: 12px; }
    .bar .logo img { height: 40px; }
    .buybtn { margin-left: auto; }
    .bar > .lang { display: none; }
    .menubtn { display: grid; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 20px 20px;
      background: var(--bg2); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
    header.open nav { display: flex; }
    nav a { padding: 13px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
    nav .lang { display: flex; align-self: flex-start; margin-top: 18px; }
    nav .lang a { font-size: 1.05rem; padding: 8px 20px; border: 0; }
  }

  /* hero */
  .hero { padding: 64px 0 72px; background:
      radial-gradient(900px 420px at 80% 10%, rgba(0, 170, 255, .18), transparent 60%),
      radial-gradient(700px 400px at 10% 90%, rgba(107, 107, 255, .16), transparent 60%); }
  .hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .pill { display: inline-block; background: rgba(61, 220, 132, .12); color: var(--ok); border: 1px solid rgba(61, 220, 132, .35);
    border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .95rem; margin-bottom: 20px; }
  .hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
  .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .btn { display: inline-block; padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1rem; }
  .btn.primary { background: var(--sky); color: #001827; }
  .btn.ghost { border: 2px solid var(--line); color: var(--text); }
  .btn.ghost:hover { border-color: var(--sky); }
  .btn.soon { background: var(--card); color: var(--muted); border: 2px dashed var(--line); cursor: default; }
  .hero-img { justify-self: center; width: min(420px, 100%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
  .hero-img.photo { border-radius: 24px; filter: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
  .photos { margin-top: 56px; }
  .photos h3 { font-size: 1.4rem; margin: 0 0 16px; }
  .photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  @media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } .photo-grid figure:last-child { grid-column: span 2; } }
  .photo-grid figure { margin: 0; }
  .photo-grid img { width: 100%; height: auto; border-radius: 16px; display: block; }
  .photo-grid figcaption { color: var(--muted); font-size: 1rem; margin-top: 8px; }
  @media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero-img { order: -1; width: min(300px, 80%); } }

  /* KopaPeak */
  .peak { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
  @media (max-width: 860px) { .peak { grid-template-columns: 1fr; } }
  .tag { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
  .film { margin-top: 40px; }
  .film h3 { margin: 0 0 12px; }
  .film .yt { position: relative; display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; }
  .film .yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .film .yt .play { position: absolute; right: 4%; bottom: 7%; width: 88px; height: 62px; border-radius: 16px; background: #e00; }
  .film .yt .play::after { content: ""; position: absolute; left: 35px; top: 18px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
  .film .yt:hover .play { background: #f22; }
  .film iframe { width: 100%; height: 100%; border: 0; display: block; }
  .film p { margin: 10px 0 0; font-size: 1rem; }
  ul.feat { list-style: none; padding: 0; margin: 0 0 24px; }
  ul.feat li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--line); }
  ul.feat li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); }
  .price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 8px 0 6px; }
  .price strong { font-size: 2.2rem; }
  .price .vat { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
  .safety { border-left: 4px solid var(--sun); padding: 6px 0 6px 16px; margin: 0 0 24px; font-weight: 600; }
  .viewer { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; }
  .stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; }
  .stage img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity .6s;
    box-shadow: 0 0 0 10px #2b3340, 0 0 0 12px #3a4555, 0 30px 60px rgba(0, 0, 0, .55); }
  .stage img.on { opacity: 1; }
  .stage .sl { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
  .stage .sl.on { opacity: 1; }
  .stage .sl img { opacity: 1; }
  .group { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .group h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 6px; }
  .group p { margin: 0; }
  [id] { scroll-margin-top: 80px; }
  .chips { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
  .chips button { background: var(--card); border: 2px solid var(--line); color: var(--text); font: inherit; font-size: 1rem; font-weight: 600;
    padding: 8px 16px; border-radius: 999px; cursor: pointer; }
  .chips button:hover { border-color: var(--sky); }
  .chips button.on { background: var(--sky); border-color: var(--sky); color: #001827; }
  @media (max-width: 860px) { .viewer { position: static; order: -1; } .stage { width: min(360px, 88%); } }
  .viewer.duo { gap: 0; }
  .duo .row { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 26px; }
  .duo .stage { width: min(330px, 78%); }
  .duo .scr { margin: 24px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--muted); text-align: center; }
  .duo .scr b { font-size: 1.25rem; margin-right: 8px; color: var(--sky); }
  .duo .scr b.amo { color: var(--sun); }
  .duo .chips { margin-top: 8px; }
  @media (max-width: 860px) { .duo .stage { width: min(290px, 74%); } }

  /* rząd okrągłych zrzutów tarczy z podpisami (KopaAstral) */
  .faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
  .faces figure { margin: 0; text-align: center; }
  .faces img { width: min(280px, 84%); margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 8px #2b3340, 0 0 0 10px #3a4555, 0 20px 40px rgba(0, 0, 0, .5); }
  .faces figcaption { color: var(--muted); font-size: 1.05rem; margin: 26px auto 0; max-width: 20em; }
  @media (max-width: 860px) { .faces { grid-template-columns: 1fr; } }
  .safety.heat { margin: 26px 0 0; }

  /* darmowe */
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
  @media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
  @media (max-width: 460px) { .card { grid-template-columns: 1fr; } .card img { width: 200px; margin: 0 auto; } }
  .card img { border-radius: 14px; }
  .free { display: inline-block; background: var(--ok); color: #002b14; font-weight: 700; font-size: .9rem; padding: 3px 10px; border-radius: 999px; margin-right: 8px; }
  .stars { color: var(--sun); font-weight: 700; font-size: .95rem; }
  /* gwiazdki ze sklepu (ratings.py, site.js) */
  .rating { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--text); text-decoration: none; font-size: 1.05rem; margin: 6px 0 10px; }
  .rating .st, .review .st { color: var(--sun); letter-spacing: 2px; }
  .rating b { font-weight: 700; }
  .rating .rc { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .rating:hover .rc { color: var(--text); }
  .card .rating { display: flex; margin: 0 0 6px; }
  .rating-sum { font-size: 1.15rem; margin: 4px 0 0; }
  .rating-sum .st { color: var(--sun); letter-spacing: 2px; }
  .rating-sum .rc { color: var(--muted); }
  [hidden] { display: none !important; }
  .reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 26px 0; }
  .review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
  .review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; flex: 1; }
  .review figcaption { color: var(--muted); font-size: .95rem; }
  .card .btn { margin-top: 12px; padding: 10px 18px; font-size: .95rem; }

  /* kroki */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; counter-reset: s; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
  .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
  .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--sky); color: #001827; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
  code { background: #0d1826; border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .95em; color: var(--sun); }

  /* FAQ */
  .faq { max-width: 820px; margin-top: 24px; }
  details { border-bottom: 1px solid var(--line); padding: 4px 0; }
  summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 14px 36px 14px 0; list-style: none; position: relative; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 6px; top: 8px; font-size: 1.6rem; color: var(--sky); font-weight: 300; }
  details[open] summary::after { content: "−"; }
  details p { color: var(--muted); }

  /* kontakt */
  .contact { text-align: center; max-width: 700px; margin: 0 auto; }
  .mail { display: inline-block; font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 3px solid var(--sky); margin: 10px 0 18px; }
  .promise { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; color: var(--muted); }

  /* na zamówienie */
  .custom { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  @media (max-width: 860px) { .custom { grid-template-columns: 1fr; } }
  .ideas { display: grid; gap: 12px; }
  .idea { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .idea b { display: block; margin-bottom: 2px; }
  .idea span { color: var(--muted); font-size: 1rem; }

  footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

  /* strony z tekstem: Jak kupić, Prywatność, 404 */
  .doc { max-width: 760px; padding: 48px 0 72px; }
  .doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 6px; }
  .doc h2 { font-size: 1.45rem; margin: 40px 0 10px; }
  .doc p, .doc li { color: var(--muted); }
  .doc ul { padding-left: 22px; }
  .doc li { margin: 6px 0; }
  .doc a { color: var(--sky); }
  .doc strong { color: var(--text); }
  footer a { color: inherit; }
  .doc.buy { padding-left: 20px; padding-right: 20px; }
  .buy .lead { font-size: 1.15rem; color: var(--muted); }
  .pricebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 22px; margin: 18px 0 8px; }
  .prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 8px; }
  @media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }
  .prices .pricebox { margin: 0; flex-direction: column; gap: 2px; }
  .pricebox b { color: var(--text); font-size: 1.1rem; }
  .small { font-size: 1rem; }
  .pricebox strong { font-size: 2rem; color: var(--text); }
  .pricebox span { color: var(--muted); }
  ol.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
  ol.flow li { position: relative; padding: 14px 0 14px 60px; border-bottom: 1px solid var(--line); margin: 0; }
  ol.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: 12px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sky); color: #001827; font-weight: 700; font-size: 1.15rem; }
  ol.flow b { color: var(--text); }
  .shot { margin: 32px auto 8px; text-align: center; }
  .shot img { width: min(320px, 80%); margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 10px #2b3340, 0 0 0 12px #3a4555, 0 30px 60px rgba(0, 0, 0, .55); }
  .shot figcaption { color: var(--muted); font-size: 1rem; margin-top: 26px; }
  .safe { background: var(--card); border: 1px solid rgba(61, 220, 132, .45); border-radius: var(--r); padding: 6px 24px 14px; margin-top: 40px; }
  .safe h2 { color: var(--ok); }
  .safe ul { list-style: none; padding: 0; }
  .safe li { position: relative; padding-left: 30px; margin: 12px 0; }
  .safe li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--ok); font-weight: 700; }
  .safe b, .buy summary { color: var(--text); }
  .help { text-align: center; margin-top: 48px; }
  .help p { margin-bottom: 4px; }
  .buy .mail { font-size: clamp(1.3rem, 4vw, 1.7rem); color: var(--text) !important; }
  .buy summary { font-size: 1.05rem; }

  /* podstrona aplikacji (Morsowanie) */
  .narrow > * { max-width: 860px; }
  .photo-grid.two { grid-template-columns: repeat(2, minmax(0, 380px)); margin-top: 24px; }
  @media (max-width: 860px) { .photo-grid.two figure:last-child { grid-column: auto; } }
  @media (max-width: 520px) { .photo-grid.two { grid-template-columns: 1fr; } }
  .boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
  @media (max-width: 960px) { .boxes { grid-template-columns: 1fr; } }
  .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 4px; }
  .box ul.feat li:last-child { border-bottom: 0; }
  #faq .faq { margin-bottom: 32px; }

/* wyraźny link do podstrony produktu, zaraz pod opisem */
a.more { display: inline-block; margin: 4px 0 18px; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--sky); color: var(--sky); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
a.more:hover { background: var(--sky); color: #001827; }
/* nazwa produktu i nagłówek na głównej prowadzą do podstrony */
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }
a.title { color: inherit; text-decoration: none; }
a.title:hover { color: var(--sky); }
/* duża nazwa produktu na głównej (zamiast drobnego .tag), hasło pod nią mniejsze */
a.pname { display: block; font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--sky); text-decoration: none; margin-bottom: 14px; }
a.pname span { display: block; margin-top: 6px; font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
a.pname:hover { text-decoration: underline; }
a.pname ~ h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
/* przypis pod zdjęciami (np. o wizualizacji AI) z odstępem od podpisów */
.photo-grid + .small { margin-top: 22px; }
