/* ─────────────────────────────────────────────────────────────────────────────
   TuxMed — strona one-page. Motyw: jasny, medyczny teal/green, czysty i nowoczesny.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #14241f;
  --ink-soft: #4d6258;
  --teal: #0f6e56;
  --teal-2: #1d9e75;
  --teal-bright: #2bbf9e;
  --bg: #ffffff;
  --bg-soft: #f2f8f5;
  --line: #e2ece7;
  --shadow: 0 18px 50px rgba(15, 110, 86, 0.10);
  --radius: 16px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-2); margin-bottom: 14px;
}
.hl { color: var(--teal); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.98rem; padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary { background: linear-gradient(135deg, var(--teal-2), var(--teal)); color: #fff; box-shadow: 0 10px 24px rgba(15,110,86,.28); }
.btn-ghost { border-color: var(--line); color: var(--teal); background: #fff; }
.btn-ghost:hover { border-color: var(--teal-bright); }
.btn-light { background: #fff; color: var(--teal); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal)); color: #fff; font-size: 1.15rem;
}
.brand-logo { width: 36px; height: 36px; display: block; object-fit: contain; }
.brand-name { font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--teal); cursor: pointer; }

/* ── Hero ── */
.hero {
  padding: 84px 0 72px;
  /* Delikatne zdjęcie w tle (www/img/hero.jpg) — prawie zakryte jasną nakładką, ledwo prześwituje.
     Brak pliku = pozostaje sam gradient (strona wygląda dobrze również bez zdjęcia). */
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(43,191,158,.16), transparent 60%),
    radial-gradient(50vw 40vh at -10% 110%, rgba(29,158,117,.12), transparent 55%),
    linear-gradient(rgba(242,248,245,.90), rgba(242,248,245,.94)),
    url("img/hero.jpg") center right / cover no-repeat,
    var(--bg-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 1.16rem; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--ink-soft); font-size: .9rem; }
.trust strong {
  color: var(--teal); background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; letter-spacing: .03em;
}

/* Faux window */
.hero-visual { display: flex; justify-content: center; }
.window {
  width: 100%; max-width: 440px; background: #fff; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.window-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdded7; }
.window-bar span:first-child { background: #f2a7a0; }
.window-bar span:nth-child(2) { background: #f3d08a; }
.window-bar span:nth-child(3) { background: #9bdcc1; }
.window-body { padding: 18px 18px 16px; }
.w-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.w-cross { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(145deg, var(--teal-bright), var(--teal)); color: #fff; font-size: .85rem; }
.w-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; }
.w-row:nth-child(odd) { background: var(--bg-soft); }
.w-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-size: .92rem; }
.w-name { color: var(--ink-soft); font-size: .94rem; }
.w-tag { font-size: .74rem; font-weight: 600; color: var(--ink-soft); background: #eef4f1; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.w-tag.ok { color: var(--teal); background: #e6f6f0; border-color: #cdeadf; }
.w-foot { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ── Sections ── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdeadf; }
.ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(145deg, #e6f6f0, #d2eee2); color: var(--teal);
}
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ── Integracje ── */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.badge strong { display: block; font-size: 1.3rem; color: var(--teal); margin-bottom: 6px; letter-spacing: -.01em; }
.badge span { color: var(--ink-soft); font-size: .9rem; }

/* ── Dlaczego ── */
.why { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal-bright); border-radius: 12px; padding: 24px 26px; }
.why-item h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--teal); }
.why-item p { color: var(--ink-soft); }

/* ── Technologia ── */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tech-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; margin: 10px 0 14px; }
.tech-list { list-style: none; display: grid; gap: 12px; }
.tech-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: var(--ink-soft); }
.tech-list li span { display: inline-block; min-width: 130px; font-weight: 700; color: var(--ink); }

/* ── Pasek ze zdjęciem (www/img/band.jpg) — zdjęcie z teal nakładką, tekst na wierzchu.
      Brak pliku = sam teal gradient (ładny pasek mimo wszystko). ── */
.photo-band {
  position: relative; padding: 120px 0; color: #fff; text-align: center;
  background:
    linear-gradient(rgba(12,31,26,.50), rgba(15,110,86,.58)),
    url("img/band.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
.photo-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; max-width: 760px; margin: 0 auto 10px; }
.photo-band p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* ── CTA ── */
.cta {
  padding: 80px 0; color: #fff; text-align: center;
  background:
    linear-gradient(135deg, rgba(15,110,86,.92), rgba(11,77,62,.95)),
    url("img/cta.jpg") center / cover no-repeat;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }

/* ── Footer ── */
.site-footer { background: #0c1f1a; color: #b9cfc7; padding: 48px 0 28px; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner .brand { color: #fff; }
.footer-note { color: #8fa9a0; font-size: .92rem; }
.footer-www { margin-left: auto; color: var(--teal-bright); font-weight: 700; letter-spacing: .04em; }
.copyright { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #708981; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .tech-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .features, .why, .badges { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-www { margin-left: 0; }
  .photo-band { background-attachment: scroll; padding: 80px 0; }
}
