/* ==========================================================================
   Wenecja — strona (landing page)
   Paleta i typografia spójne z aplikacją: laguna, terakota, złoto,
   kroje Fraunces (nagłówki) i Manrope (tekst).
   ========================================================================== */

/* --- 1. Zmienne ---------------------------------------------------------- */

:root {
  --ivory: #f8f3e8;
  --paper: #fffcf4;
  --lagoon: #0f4c5c;
  --lagoon-deep: #082f39;
  --lagoon-mid: #2a7484;
  --lagoon-mist: #d5e7e4;
  --terracotta: #c3653f;
  --terracotta-soft: #f4d9cc;
  --gold: #c9a44c;
  --gold-bright: #e6c77a;
  --gold-soft: #f2e3bc;
  --ink: #1b2425;
  --muted: #6c726e;
  --outline: #ddd1bc;

  --bg: var(--ivory);
  --surface: var(--paper);
  --surface-2: #f3ecdd;
  --text: var(--ink);
  --text-muted: var(--muted);
  --head: var(--lagoon-deep);
  --line: color-mix(in srgb, var(--outline) 70%, transparent);
  --shadow-sm: 0 1px 2px rgb(24 40 41 / 0.06), 0 2px 8px rgb(24 40 41 / 0.05);
  --shadow-md: 0 4px 12px rgb(24 40 41 / 0.07), 0 18px 40px rgb(24 40 41 / 0.09);
  --shadow-lg: 0 10px 24px rgb(8 47 57 / 0.16), 0 40px 80px rgb(8 47 57 / 0.16);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08171a;
    --surface: #102428;
    --surface-2: #173137;
    --text: #eaf2ee;
    --text-muted: #9dafaa;
    --head: #8ad3cd;
    --line: #2a454a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.35), 0 18px 40px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 10px 24px rgb(0 0 0 / 0.45), 0 40px 80px rgb(0 0 0 / 0.45);
  }

  /* Hero w ciemnym motywie: delikatniejsze poświaty, inaczej robi się muliste. */
  .hero {
    background:
      radial-gradient(60% 55% at 82% 8%, rgb(230 199 122 / 0.10) 0%, transparent 62%),
      radial-gradient(52% 48% at 8% 0%, rgb(138 211 205 / 0.10) 0%, transparent 60%),
      linear-gradient(180deg, #0d2024, var(--bg));
  }
  .hero__copy h1 em::after { background: rgb(230 199 122 / 0.18); }
}

/* --- 2. Podstawy --------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--head);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.65rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lagoon-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--head); } }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lagoon);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- 3. Elementy wspólne ------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--gold-bright); }
.eyebrow .dot {
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  border-radius: 2px;
}

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tint { background: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.section--dark {
  background: linear-gradient(160deg, var(--lagoon-deep), #061f26 65%, #0a2b33);
  color: #e6f0ee;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 60px); }
.section__lead { font-size: 1.06rem; color: var(--text-muted); max-width: 58ch; }
.section--dark .section__lead { color: #b7cdc9; }

/* Przyciski */
.btn {
  --btn-bg: var(--lagoon);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--lagoon); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--lagoon-deep); }
.btn--gold { --btn-bg: var(--gold-bright); --btn-fg: #26200c; }
.btn--gold:hover { --btn-bg: #f0d590; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--lagoon);
  border-color: color-mix(in srgb, var(--lagoon) 35%, transparent);
  box-shadow: none;
}
@media (prefers-color-scheme: dark) { .btn--ghost { --btn-fg: var(--head); border-color: var(--line); } }
.btn--ghost:hover { background: color-mix(in srgb, var(--lagoon) 8%, transparent); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.link-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-bright) 45%, transparent);
  padding-bottom: 2px;
}
.link-light:hover { border-bottom-color: var(--gold-bright); }
.link-light svg { width: 1em; height: 1em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--terracotta) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracotta) 45%, transparent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.72em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(-45deg);
}
.ticks--light li { color: #b7cdc9; }
.ticks--light li::before { background: rgb(230 199 122 / 0.16); box-shadow: inset 0 0 0 1px rgb(230 199 122 / 0.5); }
.ticks--light li::after { border-color: var(--gold-bright); }

/* --- 4. Pasek nawigacji ------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(8 47 57 / 0.06); }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow-sm);
  display: block;
}
.brand__mark svg { width: 100%; height: 100%; stroke: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.22rem; font-weight: 600; color: var(--head); }
.brand__text small { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.02em; }

.topbar__nav { display: flex; gap: 26px; margin-left: auto; }
.topbar__nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.topbar__nav a:hover { opacity: 1; color: var(--terracotta); }
.topbar__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- 5. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(60% 55% at 82% 8%, color-mix(in srgb, var(--gold-soft) 70%, transparent) 0%, transparent 62%),
    radial-gradient(52% 48% at 8% 0%, color-mix(in srgb, var(--lagoon-mist) 65%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, var(--bg)), var(--bg));
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 20px; }
.hero__copy h1 em {
  font-style: normal;
  color: var(--terracotta);
  position: relative;
  white-space: nowrap;
}
.hero__copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: color-mix(in srgb, var(--gold-bright) 55%, transparent);
  border-radius: 6px;
  z-index: -1;
}
.lead { font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem); color: var(--text-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}
.hero__meta li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* Telefony w hero */
.hero__visual { position: relative; min-height: 460px; }
.phone {
  position: absolute;
  width: clamp(200px, 25vw, 268px);
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #22383d, #0d2126);
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0b2b32;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone--back {
  right: 6%;
  top: 2%;
  transform: rotate(7deg);
  opacity: 0.92;
}
.phone--front {
  left: 4%;
  bottom: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.hero__chip {
  position: absolute;
  right: 0;
  bottom: 12%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero__chip svg { width: 18px; height: 18px; color: var(--lagoon-mid); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- 6. Liczby ---------------------------------------------------------- */

.stats { padding: 0 0 clamp(40px, 6vw, 70px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 600;
  color: var(--lagoon);
  line-height: 1.1;
}
.stat--long b { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .stat b { color: var(--head); } }
.stat span { font-size: 0.87rem; color: var(--text-muted); }

/* --- 7. Karty funkcji --------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--terracotta) 35%, var(--line)); }
.card--wide { grid-column: span 2; }
@media (max-width: 780px) { .card--wide { grid-column: span 1; } }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lagoon) 9%, transparent);
  color: var(--lagoon);
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .card__icon { background: color-mix(in srgb, var(--head) 12%, transparent); color: var(--head); } }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card strong { color: var(--text); }

/* --- 8. Kroki ----------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lagoon);
  color: #fff;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 0.98rem; }

/* --- 9. Showcase -------------------------------------------------------- */

.showcase { display: grid; gap: clamp(48px, 7vw, 90px); }
.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.showcase__grid--flip .showcase__media { order: 2; }
.showcase__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #0b2b32;
  max-width: 330px;
  margin-inline: auto;
}
.showcase__media img { width: 100%; height: auto; }
.showcase__copy h2 { margin-bottom: 18px; }

/* --- 10. Galeria -------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.shot { margin: 0; }
.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b2b32;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.shot__btn:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.shot__btn img { width: 100%; height: auto; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Podgląd pełnego zrzutu */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 460px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(6 20 24 / 0.78); backdrop-filter: blur(4px); }
.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  background: #0b2b32;
}
.lightbox__caption {
  color: #e6f0ee;
  text-align: center;
  font-size: 0.9rem;
  margin: 14px 0 0;
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* --- 11. Specyfikacja ---------------------------------------------------- */

.spec__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.spec__table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 26px;
  box-shadow: var(--shadow-sm);
}
.spec__table dl { margin: 0; }
.spec__table dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.spec__table dl > div:last-child { border-bottom: 0; }
.spec__table dt { font-weight: 700; color: var(--head); font-size: 0.95rem; }
.spec__table dd { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 620px) {
  .spec__table dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* --- 12. Pobieranie ------------------------------------------------------ */

.download__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.download__copy p { color: #b7cdc9; }
.download__copy h2 { margin-bottom: 16px; }
.download__copy .ticks { margin: 22px 0 26px; }

.download__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
/* Karta jest jasna w motywie jasnym i ciemna w ciemnym, dlatego wszystkie
   kolory w środku biorą się ze zmiennych motywu. */
.download__card h3 { color: var(--head); }
.download__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.download__head h3 { margin: 0; font-size: 1.4rem; }
.download__head p { margin: 2px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.download__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #0f4c5c;
  color: #e6c77a;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.download__meta { margin: 22px 0 0; display: grid; gap: 0; }
.download__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.download__meta > div:last-child { border-bottom: 0; }
.download__meta dt { color: var(--text-muted); }
.download__meta dd { margin: 0; font-weight: 700; text-align: right; }

.download__hash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}
.download__hash span { color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; }
.download__hash code {
  background: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.copy {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--head);
  cursor: pointer;
}
.copy:hover { background: var(--surface-2); }

.install { margin: 18px 0 0; padding-left: 20px; font-size: 0.9rem; color: var(--text-muted); }
.install li { margin-bottom: 4px; }
.install code { background: var(--surface-2); }

.download__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.download__note code { background: var(--surface-2); font-size: 0.95em; }

/* --- 13. FAQ -------------------------------------------------------------- */

.faq__wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: var(--head);
  font-size: 1.03rem;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--text-muted); margin: 0; }

/* --- 14. Pasek CTA ------------------------------------------------------- */

.cta-strip {
  background: color-mix(in srgb, var(--gold-soft) 45%, var(--bg));
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 66px) 0;
}
.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-strip h2 { margin: 0 0 4px; }
.cta-strip p { margin: 0; color: var(--text-muted); }

/* --- 15. Stopka ---------------------------------------------------------- */

.footer {
  background: var(--lagoon-deep);
  color: #c4d6d2;
  padding: clamp(48px, 6vw, 74px) 0 30px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand strong { color: #fff; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.1rem; }
.footer__brand p { margin-top: 6px; color: #9db3af; }
.footer__col h3 {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__col a { display: block; color: #c4d6d2; text-decoration: none; margin-bottom: 8px; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__col p { color: #9db3af; margin-bottom: 8px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: #7f9a95;
  font-size: 0.83rem;
}
.footer__bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__grid, .download__grid, .showcase__grid { grid-template-columns: 1fr; }
  .showcase__grid--flip .showcase__media { order: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: -1; }
  .phone { width: clamp(168px, 44vw, 230px); }
  .phone--front { left: 0; }
  .phone--back { right: 0; }
  .hero__chip { right: 0; bottom: 0; font-size: 0.8rem; padding: 7px 13px; }
}
@media (max-width: 520px) {
  .brand__text small { display: none; }
  .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
}
@media (max-width: 780px) {
  .topbar__nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a { padding: 12px 14px; border-radius: 10px; }
  .topbar__nav a:hover { background: var(--surface-2); }
  .nav-toggle { display: block; }
  .topbar__cta { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- 16. Animacje wejścia ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- 17. Wydruk ---------------------------------------------------------- */

@media print {
  .topbar, .cta-strip, .lightbox, .hero__visual { display: none; }
  body { background: #fff; color: #000; }
  .section--dark { background: #fff; color: #000; }
}
