/* ===========================================================================
   AQ-MED — Design System (LIGHT / premium health-tech)
   Biel · jasny beż · jasna szarość · błękit medyczny · czerwień AQ-MED (akcent)
   Granat tylko do tekstu i kontrastu. Dużo światła, delikatny glow.
   =========================================================================== */

:root {
  /* tło / światło */
  --bg:       #ffffff;
  --bg-soft:  #f6f8fc;   /* sekcje alternatywne */
  --bg-beige: #f7f3ec;   /* ciepła biel */
  --bg-blue:  #eef4ff;   /* tint błękitu medycznego */
  --card:     #ffffff;

  /* tekst (granat) */
  --ink:   #0d1b33;
  --ink-2: #475069;
  --ink-3: #8a93a6;

  /* linie */
  --line:      rgba(13,27,51,0.10);
  --line-soft: rgba(13,27,51,0.055);

  /* akcenty */
  --red:      #e5343f;
  --red-soft: #ff5a64;
  --red-deep: #c01f29;
  --blue:     #2f6bf0;   /* błękit medyczny */
  --blue-soft:#6f9bf5;
  --mint:     #19b886;

  /* glow / cienie (jasne) */
  --shadow-sm: 0 4px 18px rgba(13,27,51,0.06);
  --shadow:    0 18px 50px rgba(13,27,51,0.10);
  --shadow-lg: 0 40px 90px rgba(13,27,51,0.14);
  --glow-red:  0 12px 36px rgba(229,52,63,0.30);
  --glow-blue: 0 12px 36px rgba(47,107,240,0.22);

  /* type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* miary */
  --maxw: 1240px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- układ ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.04; margin: 0;
  color: var(--ink); text-wrap: balance;
}
p { text-wrap: pretty; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }

.lead { color: var(--ink-2); font-size: clamp(17px, 1.55vw, 21px); max-width: 56ch; }

/* ---- przyciski ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--glow-red); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(229,52,63,0.40); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--soft { background: var(--bg-blue); color: var(--blue); }
.btn--soft:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---- placeholder obrazu (jasny) ---- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(13,27,51,0.035) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, var(--bg-blue), var(--bg-soft));
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; min-height: 180px;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 7px 12px; border: 1px dashed var(--line);
  border-radius: 8px; background: rgba(255,255,255,0.7);
  text-align: center; max-width: 80%;
}

/* ---- wgrane zdjęcie (zastępuje placeholder) ---- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- karty / panele ---- */
.glass {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ---- animacje podstron: pasek postępu, orbs, kicker ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--red-soft)); z-index: 1400; pointer-events: none; border-radius: 0 3px 3px 0; box-shadow: 0 0 12px rgba(229,52,63,0.5); }
.has-orbs { position: relative; }
.has-orbs > .wrap { position: relative; z-index: 1; }
.orb-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; animation: orbFloat 16s ease-in-out infinite alternate; }
.orb.o1 { width: 380px; height: 380px; left: -90px; top: -120px; background: radial-gradient(circle, rgba(229,52,63,0.26), transparent 70%); }
.orb.o2 { width: 460px; height: 460px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(47,107,240,0.22), transparent 70%); animation-duration: 21s; animation-delay: -7s; }
@keyframes orbFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-35px) scale(1.14); } }
@keyframes kickerSweep { from { width: 0; } to { width: 26px; } }
section .kicker::before { animation: kickerSweep .9s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--red); box-shadow: 0 14px 34px rgba(15,23,42,0.07); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #f3f4f8; transition: background .25s, transform .3s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink-2); transform: translate(-50%,-50%); transition: transform .3s, background .25s; }
.faq-ico::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-ico { background: var(--red); transform: rotate(45deg); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 62ch; }
/* ---- zaufanie (stopka) ---- */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; }
.trust-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1d9e55; }

/* ---- reveal ---- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready .reveal { opacity: 0; transform: perspective(1100px) translateY(34px) rotateX(7deg); transform-origin: 50% 100%; }
  html.anim-ready .reveal.in { opacity: 1; transform: perspective(1100px) translateY(0) rotateX(0); }
}

/* ---- 3D tilt (JS ustawia transform inline) ---- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .18s ease-out, box-shadow .4s var(--ease) !important; }

/* ---- nawigacja ---- */
/* nawigacja — pełnoszerokowy pasek */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft); padding: 11px 28px;
  box-shadow: 0 6px 24px rgba(13,27,51,0.06);
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 11px;
  white-space: nowrap; color: var(--ink);
}
.logo > span { white-space: nowrap; }
.logo .logo-mark { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(229,52,63,0.25)); }
.logo .mark-med { color: var(--red); }
@keyframes beat { 0%,100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(229,52,63,0.45); } 50%{ transform: scale(1.25); box-shadow: 0 0 0 7px rgba(229,52,63,0); } }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn):not(.nav-login) { font-size: 14.5px; color: var(--ink-2); transition: color .25s; white-space: nowrap; }
.nav-links a:not(.btn):not(.nav-login):hover { color: var(--ink); }
.nav-links .nav-cta { color: #fff; }
.nav-login { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm); transition: color .25s, border-color .25s, transform .25s; }
.nav-login:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.mobile-login { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px;
  font-size: 16px !important; font-weight: 600; color: var(--ink-2) !important; }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); width: 40px; height: 40px; }

/* mobilne menu (w styles.css, by działało na każdej stronie) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 40px; transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink-2); padding: 10px 0; }
.mobile-menu a.btn { font-size: 17px; margin-top: 16px; align-self: flex-start; color: #fff; }

/* menu pozostaje widoczne — kompaktuje się zamiast chować */
@media (max-width: 1240px) {
  .nav-links { gap: 16px; }
  .nav-links .btn { padding: 11px 18px; font-size: 14px; }
  .nav-login { padding: 8px 12px; }
}
@media (max-width: 1080px) {
  .nav-links { gap: 13px; }
  .nav-links a:not(.btn):not(.nav-login) { font-size: 13.5px; }
  .nav-links .nav-cta { display: none; }
  .nav-login span { display: none; }
  .nav-login { padding: 9px 11px; }
}
@media (max-width: 760px) {
  .nav .logo > span { display: none; }
  .nav-links { gap: 11px; }
}
/* hamburger dopiero na małym telefonie */
@media (max-width: 620px) { .nav-links { display: none; } .nav-burger { display: grid; place-items: center; } }

/* ---- stopka ---- */
.footer { border-top: 1px solid var(--line-soft); padding: 70px 0 46px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; color: var(--ink); }
.footer a, .footer li { color: var(--ink-3); font-size: 14px; line-height: 2.05; transition: color .25s; }
.footer a:hover { color: var(--red); }
.footer ul { list-style: none; padding: 0; margin: 0; }
/* social media */
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s; }
.social-btn:hover { transform: translateY(-3px); border-color: var(--ink); }
.social-btn img { display: block; }
.social-btn--wa { border-color: rgba(37,211,102,0.45); }
.social-btn--wa:hover { border-color: #25D366; box-shadow: 0 6px 18px rgba(37,211,102,0.28); }

/* social media — pasek z boku ekranu */
.social-rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 10px; }
.social-rail .social-btn { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); }
.social-rail::before { content: ""; width: 1px; height: 34px; background: var(--line); margin: 0 auto 4px; }
.social-rail::after { content: ""; width: 1px; height: 34px; background: var(--line); margin: 4px auto 0; }
@media (max-width: 1340px) {
  .social-rail { right: 8px; gap: 8px; }
  .social-rail .social-btn { width: 36px; height: 36px; border-radius: 11px; }
  .social-rail .social-btn img { width: 16px; height: 16px; }
  .social-rail::before, .social-rail::after { height: 22px; }
}
@media (max-width: 620px) { .social-rail { display: none; } }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px; }
.linklike { background: none; border: 0; color: var(--ink-3); font-size: 14px; padding: 0; cursor: pointer; transition: color .25s; }
.linklike:hover { color: var(--red); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- cookies ---- */
.cookies {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 600px; margin: 0 auto; padding: 20px 22px;
  display: flex; gap: 18px; align-items: center;
  transform: translateY(160%); transition: transform .6s var(--ease);
}
.cookies.show { transform: none; }
.cookies p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.cookies a { color: var(--red); text-decoration: underline; }
.cookies-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookies .btn { padding: 10px 16px; font-size: 13px; }
@media (max-width: 620px) { .cookies { flex-direction: column; align-items: stretch; } .cookies-actions { justify-content: stretch; } .cookies-actions .btn { flex: 1; justify-content: center; } }

/* ---- utilsy ---- */
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.sec-head { margin-bottom: 54px; max-width: 740px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-title { font-size: clamp(34px, 5vw, 62px); }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-blue); color: var(--blue); white-space: nowrap;
}
