/* ==========================================================
   biosciek.pl – strona główna
   Układ: mobile-first, jeden plik CSS, bez zależności
   ========================================================== */

:root {
  --c-ink: #0f2a2a;          /* tekst podstawowy */
  --c-muted: #4a6361;        /* tekst drugorzędny */
  --c-primary: #0b6b5c;      /* zieleń wodna */
  --c-primary-dark: #084a41;
  --c-accent: #e8a317;       /* bursztyn – CTA */
  --c-accent-dark: #c98a0b;
  --c-soil: #6b4a2b;         /* ziemia – akcenty */
  --c-bg: #ffffff;
  --c-bg-soft: #f2f7f5;
  --c-bg-dark: #0c2e2b;
  --c-line: #d7e4e0;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(12, 46, 43, .10);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: #e6f2ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--c-muted); font-size: 1.08rem; }
.section--dark .section__head p { color: #b9d3cd; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-primary); margin-bottom: 10px;
}
.section--dark .eyebrow { color: #7fd6c4; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--c-accent); color: #2b1d00; box-shadow: 0 6px 18px rgba(232,163,23,.35); }
.btn--accent:hover { background: var(--c-accent-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--block { width: 100%; }

/* ---------- Nagłówek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.logo svg { width: 34px; height: 34px; }
.logo span em { font-style: normal; color: var(--c-primary); }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--c-ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--c-bg-soft); }
.topbar__cta { display: none; }
.menu-toggle { display: none; }
.menu-btn {
  display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
}
.menu-btn span { width: 24px; height: 2px; background: var(--c-ink); transition: .2s; }
.menu-toggle:checked ~ .nav {
  display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
  background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
}
.menu-toggle:checked ~ .nav a { padding: 14px 8px; border-bottom: 1px solid var(--c-line); }
.menu-toggle:checked + .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked + .menu-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(127,214,196,.25), transparent 60%),
    linear-gradient(160deg, #0c2e2b 0%, #0b4a42 100%);
  color: #fff; padding: 56px 0 0; overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #7fd6c4; }
.hero__lead { font-size: 1.15rem; color: #cfe6e1; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: #b9d3cd; }
.hero__badges li::before { content: "✓"; color: #7fd6c4; font-weight: 800; margin-right: 8px; }
.hero__art { width: 100%; max-width: 560px; margin-inline: auto; }

/* ---------- Pasek liczb ---------- */
.stats { background: #fff; margin-top: 56px; border-radius: var(--radius) var(--radius) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-bottom: 1px solid var(--c-line); }
.stat:nth-child(odd) { border-right: 1px solid var(--c-line); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--c-muted); }

/* ---------- Oferta ---------- */
.cards { display: grid; gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; position: relative; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--c-bg-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--c-primary);
}
.card__icon svg { width: 30px; height: 30px; }
.card p { color: var(--c-muted); margin-bottom: 0; }
.card--featured { border: 2px solid var(--c-primary); }
.card__tag {
  position: absolute; top: -12px; right: 20px; background: var(--c-primary); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}

/* ---------- Dlaczego my ---------- */
.why { display: grid; gap: 40px; align-items: center; }
.why__list { display: grid; gap: 22px; }
.why__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.why__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: #2b1d00;
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-head);
}
.why__item h3 { margin-bottom: 4px; }
.why__item p { margin: 0; color: #b9d3cd; }
.diagram { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; }
.diagram figcaption { font-size: .85rem; color: #9cc3bb; margin-top: 10px; text-align: center; }

/* ---------- Porównanie ---------- */
.compare { display: grid; gap: 22px; }
.compare__col { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
.compare__col h3 { display: flex; align-items: center; gap: 10px; }
.compare__col ul li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px dashed var(--c-line); }
.compare__col ul li:last-child { border-bottom: 0; }
.compare__col ul li::before { content: "•"; position: absolute; left: 8px; color: var(--c-primary); font-weight: 800; }
.note { font-size: .92rem; color: var(--c-muted); margin-top: 22px; padding: 14px 18px; background: #fff; border-left: 4px solid var(--c-accent); border-radius: 6px; }

/* ---------- Proces ---------- */
.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 30px 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-head); z-index: 1;
}
.step::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--c-line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--c-muted); }

/* ---------- Realizacje ---------- */
.case { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case__top { padding: 22px 26px; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff; }
.case__top small { display: block; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; font-size: .72rem; color: #a6e3d6; margin-bottom: 6px; }
.case__top h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.case__body { padding: 24px 26px 28px; flex: 1; }
.case__body p { color: var(--c-muted); font-size: .98rem; }
.case__result {
  margin-top: 16px; padding: 14px 16px; background: var(--c-bg-soft); border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--c-primary-dark);
}

/* ---------- Dla kogo / obszar ---------- */
.two { display: grid; gap: 28px; }
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; }
.panel ul { margin-top: 12px; }
.panel li { padding: 8px 0 8px 26px; position: relative; color: var(--c-muted); }
.panel li::before { content: "✓"; position: absolute; left: 0; color: var(--c-primary); font-weight: 800; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.areas li { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 5px 14px; font-size: .9rem; color: var(--c-ink); }
.areas li::before { display: none; }
.area-group { margin-bottom: 18px; }
.area-group h3 { font-size: 1rem; margin-bottom: 0; color: var(--c-primary-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700;
  font-family: var(--font-head); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.6rem; color: var(--c-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--c-muted); padding-bottom: 6px; }

/* ---------- Ekspert ---------- */
.expert { display: grid; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; }
.expert__avatar {
  width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), #1c9c86);
  color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2rem;
}
.expert h3 { margin-bottom: 2px; }
.expert .role { color: var(--c-primary); font-weight: 600; margin-bottom: 10px; display: block; }
.expert p:last-child { margin: 0; color: var(--c-muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 36px; }
.contact__info li { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.contact__info svg { flex: 0 0 24px; width: 24px; height: 24px; color: #7fd6c4; margin-top: 3px; }
.contact__info a { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.contact__info small { display: block; color: #9cc3bb; }
.form { background: #fff; color: var(--c-ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h3 { color: var(--c-ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 10px;
  font: inherit; color: var(--c-ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11,107,92,.25); border-color: var(--c-primary); }
.field textarea { min-height: 96px; resize: vertical; }
.form__row { display: grid; gap: 0 16px; }
.check { display: flex; gap: 10px; font-size: .82rem; color: var(--c-muted); margin: 6px 0 18px; align-items: flex-start; }
.check input { margin-top: 4px; flex: 0 0 auto; }

/* ---------- Stopka ---------- */
.footer { background: #071d1b; color: #8fb0a9; padding: 40px 0 24px; font-size: .92rem; }
.footer__grid { display: grid; gap: 24px; margin-bottom: 28px; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer a { color: #b9d3cd; }
.footer h4 { color: #fff; margin: 0 0 10px; font-family: var(--font-head); }
.footer li { padding: 3px 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: .85rem; }

/* ---------- Przycisk "zadzwoń" na mobile ---------- */
.sticky-call {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; gap: 8px;
}
.sticky-call .btn { flex: 1; padding: 13px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ==========================================================
   Tablet ≥ 700px
   ========================================================== */
@media (min-width: 700px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--c-line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--c-line); }
  .stat:last-child { border-right: 0; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .expert { grid-template-columns: auto 1fr; gap: 30px; }
}

/* ==========================================================
   Desktop ≥ 1000px
   ========================================================== */
@media (min-width: 1000px) {
  .section { padding: 96px 0; }
  .hero { padding-top: 80px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .menu-btn { display: none; }
  .nav { display: flex; gap: 2px; }
  .topbar__cta { display: inline-flex; padding: 10px 20px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .sticky-call { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}
@media (max-width: 999px) {
  body { padding-bottom: 76px; }
}

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

.contact--single { max-width: 640px; }
@media (min-width: 1000px) { .contact--single { grid-template-columns: 1fr; } }
