/* Azyl — strona informacyjna. Paleta jak w aplikacji i na plakacie.
   Bez zewnętrznych czcionek i skryptów. */
:root {
  --bg: #f5f5ec;
  --surface: #ffffff;
  --ink: #18291f;
  --muted: #5a6a5f;
  --line: #dfe3d6;
  --lake: #1e6a47;
  --lake-deep: #165536;
  --lake-soft: #e2efe6;
  --sun: #efb02c;
  --amber: #8a5c05;
  --amber-soft: #fbefcc;
  --good: #2f7a52;
  --alert: #9b2f2f;
  --alert-soft: #f8e6e6;
  --display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", Nunito, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(24, 41, 31, 0.1);
  --radius: 22px;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.55 var(--body);
  background:
    radial-gradient(820px 560px at 108% -8%, rgba(30, 106, 71, 0.13), transparent 62%),
    radial-gradient(640px 420px at -12% 18%, rgba(226, 239, 230, 0.95), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: 0.15em; }
a:hover { color: var(--lake-deep); }

:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--lake);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24, 41, 31, 0.12);
}
.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-btn {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 12px;
  border-radius: 12px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--lake-soft);
  color: var(--lake-deep);
}
.site-nav .nav-cta {
  background: var(--lake);
  color: #fff !important;
  margin-left: 6px;
  padding-inline: 16px;
}
.site-nav .nav-cta:hover { background: var(--lake-deep); }

@media (max-width: 860px) {
  .nav-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-btn { background: var(--lake-soft); }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--lake);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 106, 71, 0.22);
}
.btn-primary:hover { background: var(--lake-deep); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--lake); color: var(--lake-deep); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 20px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    padding: 56px 0 28px;
  }
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lake);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.12; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 6.4vw, 4.15rem);
  font-weight: 800;
  text-wrap: balance;
}
h1 .accent { color: var(--lake); display: block; }
.lead {
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 2.1vw, 1.28rem);
  color: var(--muted);
  max-width: 36rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.poster-frame {
  justify-self: center;
  width: min(100%, 420px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
}
.poster-frame img { width: 100%; height: auto; }

/* Sections */
section { padding: 52px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 1.22rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

.grid-3, .grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card p:last-child { margin-bottom: 0; }
.ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lake-soft);
  color: var(--lake);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.ic svg { width: 26px; height: 26px; }

/* Feature extras */
.feat-more h3 { font-size: 1.18rem; }

/* Video */
.video-wrap {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .video-wrap { grid-template-columns: 1fr 280px; }
}
.phone {
  width: min(280px, 78vw);
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  border: 10px solid #18241d;
  overflow: hidden;
  background: #05070b;
  box-shadow: var(--shadow);
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-copy ul { padding-left: 1.15em; }

/* Downloads / QR */
.kit {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .kit { grid-template-columns: 1.1fr 0.9fr 0.8fr; }
}
.kit figure { margin: 0; }
.kit img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.kit figure img {
  max-height: min(70vh, 520px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  background: var(--bg);
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.qr-card img {
  width: 200px;
  height: 200px;
  border: 0;
  background: #fff;
  padding: 10px;
}
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--lake);
  font-weight: 800;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { margin-top: 0; }

/* Notice / disclaimer */
.notice {
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--sun) 55%, var(--line));
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
}
.notice-alert {
  background: var(--alert-soft);
  border-color: color-mix(in srgb, var(--alert) 30%, var(--line));
}
.notice a { font-weight: 700; }

/* Legal docs */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 64px;
}
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc-date {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.doc h2 {
  font-size: 1.28rem;
  margin: 1.8em 0 0.45em;
  color: var(--lake-deep);
}
.doc h3 { font-size: 1.05rem; margin: 1.2em 0 0.35em; }
.doc p, .doc li { margin: 0.5em 0; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.doc th, .doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--lake-soft);
}
.fill-in {
  display: inline;
  background: var(--amber-soft);
  border-bottom: 1px dashed var(--amber);
  padding: 0 4px;
  font-weight: 700;
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lake);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.os-block { margin-bottom: 36px; }

/* Help numbers */
.help-list { display: grid; gap: 14px; }
.help-card .num {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.help-card .num a { text-decoration: none; color: var(--lake); }
.help-card .meta { font-size: 0.95rem; color: var(--muted); }
.source { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact-box { font-size: 1.15rem; }

/* Page hero (inner pages) */
.page-hero { padding: 36px 0 8px; }
.page-hero h1 { margin-bottom: 10px; }
.breadcrumb {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 18px;
}
.site-footer a { color: var(--muted); }

/* 404 */
.empty {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 60px 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-nav, .nav-btn, .skip, .btns, .site-footer nav { display: none !important; }
  body { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; }
}

/* —— Richer marketing layout —— */
.hero-rich {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0 20px;
}
@media (max-width: 900px) {
  .hero-rich { grid-template-columns: 1fr; gap: 28px; }
  .hero-rich .phone { max-width: 280px; margin-inline: auto; }
}
.phone {
  margin: 0;
  filter: drop-shadow(0 22px 40px rgba(24,41,31,.18));
}
.phone img { width: 100%; height: auto; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.audience-grid h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: var(--display); }
.audience-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-row .phone { max-width: 260px; margin-inline: auto; }
}
.feature-row h3 { margin: 0 0 10px; font-size: 1.45rem; font-family: var(--display); }
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps-3 { grid-template-columns: 1fr; } }
.steps-3 article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  position: relative;
}
.steps-3 article::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--lake-soft);
  color: var(--lake-deep);
  font-weight: 800;
  margin-bottom: 12px;
}
.download-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(145deg, #163f2d, #1e6a47 55%, #2f8a5c);
  color: #f5fff8;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.download-box a { color: #fff; }
.download-box .qr {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  width: 168px;
}
.download-box .qr img { width: 144px; height: 144px; }
.download-box .muted { color: rgba(245,255,248,.82); }
@media (max-width: 700px) {
  .download-box { grid-template-columns: 1fr; text-align: center; }
  .download-box .qr { margin-inline: auto; }
  .download-box .btns { justify-content: center; }
}
.platform-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.platform-btns a {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}
.platform-btns a:hover { background: rgba(255,255,255,.22); color: #fff; }
.privacy-band {
  background: var(--lake-soft);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--lake) 18%, var(--line));
}
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row a, .share-row button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.media-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } }
.video-card video { width: 100%; border-radius: 18px; background: #111; }
.section-pad { padding: 48px 0; }
.install-shot {
  max-width: 240px;
  margin: 18px auto 0;
  filter: drop-shadow(0 14px 28px rgba(24,41,31,.16));
}
