/* =========================================================
   CorePharma — Design System  (Supliful-inspired green theme)
   Fonts: Playfair Display (nagłówki) + Inter (treść, UI i menu)
   ========================================================= */

:root {
  /* Brand palette — fresh green */
  --ink:        #20231F;   /* warm near-black — headings, text */
  --forest:     #15263F;   /* dark navy — footer, dark bands */
  --core:       #234E84;   /* navy — primary accent */
  --core-deep:  #1A3A63;   /* darker navy */
  --core-bright:#234E84;   /* CTA navy */
  --lime:       #7FA8D9;   /* soft sky blue — accents on dark bg */
  --lime-soft:  #E7EDF5;   /* soft blue-grey — icon tints */
  --growth:     #234E84;   /* alias */
  --supp:       #234E84;   /* supplements tint */
  --cosmo:      #C08560;   /* cosmetics warm copper tint */

  /* Neutrals (warm cream base) */
  --bg:        #FFFFFF;
  --cloud:     #F5F2EB;    /* warm cream section bg */
  --sand:      #FAF8F2;    /* lighter warm section bg */
  --surface:   #FFFFFF;
  --line:      #E7E2D8;
  --line-soft: #F0ECE3;
  --muted:     #5C5A52;    /* warm grey text */
  --muted-2:   #8C8A7E;

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-nav: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(12,31,22,.06), 0 2px 8px rgba(12,31,22,.05);
  --shadow:    0 4px 18px rgba(12,31,22,.08), 0 12px 32px rgba(12,31,22,.06);
  --shadow-lg: 0 24px 64px rgba(12,31,22,.16);

  /* Layout */
  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.7; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.bg-cloud { background: var(--cloud); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--forest); color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--core); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--core-bright); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--core-bright); color: #fff; box-shadow: 0 8px 20px rgba(35,78,132,.28); }
.btn--primary:hover { transform: translateY(-2px); background: var(--core-deep); box-shadow: 0 12px 28px rgba(35,78,132,.38); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--core); color: var(--core); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / floating pill nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; background: transparent; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  height: 62px; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: 100px; box-shadow: 0 10px 30px rgba(12,31,22,.10);
  position: relative;
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-logo { height: 32px; width: auto; display: block; }
@media (max-width: 460px) { .brand-logo { height: 27px; } }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a { font-size: .74rem; font-weight: 700; font-family: var(--font-nav); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); opacity: .85; transition: opacity .15s, color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--core); }
.nav-right .btn { text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: .7rem; }
.lang-switch { display: flex; gap: 2px; background: var(--cloud); border-radius: 100px; padding: 3px; font-family: var(--font-display); }
.lang-switch a { font-size: .8rem; font-weight: 700; padding: .3rem .65rem; border-radius: 100px; color: var(--muted); }
.lang-switch a.active { background: #fff; color: var(--core-deep); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -88px; padding: calc(88px + clamp(2.5rem,6vw,4.5rem)) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(35,78,132,.07), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, #F5F2EB 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .grad { color: var(--core-deep); }
.hero .lead { margin-bottom: 2rem; max-width: 560px; color: #2B3A4D; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; color: #3A4B5E; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--core-deep); }

/* ---------- Centered hero (Blanka-style) + rotating word ---------- */
.hero--center { padding: calc(88px + clamp(2.5rem,6vw,4.5rem)) 0 clamp(3rem,7vw,6rem); }
.hero-center { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-center h1 { font-size: clamp(2.7rem, 6.8vw, 5rem); line-height: 1.03; letter-spacing: -0.03em; }
.hero-center .lead { margin: 1.5rem auto 2.2rem; max-width: 600px; color: #2B3A4D; }
.hero-center .hero-cta { justify-content: center; margin-bottom: 1.8rem; }
.hero-center .hero-trust { gap: 1.2rem 1.8rem; }
.rotator { display: inline-block; color: var(--core); position: relative; white-space: nowrap; transition: opacity .3s ease, transform .3s ease; }
.rotator.swap { opacity: 0; transform: translateY(-0.28em); }
@media (max-width: 760px){ .hero-center h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); } }

/* ---------- Hero product photo ---------- */
.hero-photo-wrap { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); display: block; }
.hero-photo-badge { position: absolute; left: -14px; bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .6rem 1.05rem; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink); box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: .45rem; }
.hero-photo-badge svg { width: 18px; height: 18px; color: var(--core); }
@media (max-width: 980px) { .hero-photo-wrap { max-width: 440px; margin: 0 auto; } }
@media (max-width: 460px) { .hero-photo-badge { left: 0; } }

/* Hero visual card */
.hero-visual { position: relative; }
.flow-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem; position: relative; z-index: 2;
}
.flow-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); margin-bottom: 1.2rem; font-family: var(--font-display); }
.flow-step { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.flow-step:last-child { border-bottom: none; }
.flow-num { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: .95rem; background: var(--core); }
.flow-num svg { width: 20px; height: 20px; }
.flow-step:nth-child(2) .flow-num { background: var(--core-deep); }
.flow-step:nth-child(3) .flow-num { background: var(--core); }
.flow-step:nth-child(4) .flow-num { background: var(--core-bright); }
.flow-step:nth-child(5) .flow-num { background: #4C84C8; }
.flow-step b { font-family: var(--font-display); font-size: 1rem; display: block; color: var(--ink); }
.flow-step small { color: var(--muted-2); font-size: .85rem; }
.hero-badge {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: .7rem 1rem; font-family: var(--font-display);
  display: flex; align-items: center; gap: .6rem;
}
.hero-badge b { font-size: 1.3rem; color: var(--core-deep); font-weight: 800; }
.hero-badge small { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.hero-badge--tl { top: -18px; left: -22px; }
.hero-badge--br { bottom: -22px; right: -18px; }

/* ---------- Logo / trust strip ---------- */
.trust-strip { padding: 1.8rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-strip .wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.trust-strip span { font-size: .8rem; letter-spacing: .04em; color: var(--muted-2); text-transform: uppercase; font-weight: 700; font-family: var(--font-display); }
.trust-logos { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center; }
.trust-logos b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--muted); opacity: .7; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: clamp(1.4rem, 2.4vw, 2.1rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.8rem, 2.5vw, 2.4rem); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--lime-soft); color: var(--core-deep); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .96rem; }

/* Path selector cards (self-segmentation) */
.path-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 2.2rem; color: #fff; display: flex; flex-direction: column; min-height: 320px;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.path-card--start { background: linear-gradient(150deg, var(--core), #4C84C8); }
.path-card--scale { background: linear-gradient(150deg, var(--forest), var(--core-deep)); }
.path-card .pc-tag { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; opacity: .85; margin-bottom: .8rem; font-weight: 700; }
.path-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .8rem; }
.path-card p { color: rgba(255,255,255,.88); margin-bottom: 1.4rem; }
.path-card ul { margin-bottom: 1.8rem; display: grid; gap: .55rem; }
.path-card li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.94); }
.path-card li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; opacity: .95; }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Process / value chain ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.chain-step { position: relative; padding: 1.8rem 1.4rem; }
.chain-step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.4rem; right: -1px; width: 1px; height: calc(100% - 2.4rem); background: var(--line);
}
.chain-num { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--core-deep); margin-bottom: .8rem; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--core-bright); }
.chain-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.chain-step p { font-size: .9rem; }
.chain-step .chain-tags { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chain-tags span { font-size: .74rem; padding: .25rem .6rem; border-radius: 100px; background: var(--lime-soft); color: var(--core-deep); font-weight: 700; font-family: var(--font-display); }

/* ---------- Stats (light rounded cards — Supliful style) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { padding: 2rem 1.6rem; background: var(--cloud); border-radius: 22px; text-align: center; }
.stat b { font-family: var(--font-head); font-size: clamp(2.2rem, 4.2vw, 3.1rem); color: var(--ink); display: block; line-height: 1; letter-spacing: -.01em; font-weight: 700; }
.stat span { font-size: .92rem; color: var(--muted); display: block; margin-top: .6rem; }
.bg-ink .stat { background: rgba(255,255,255,.06); }
.bg-ink .stat b { color: #fff; }
.bg-ink .stat span { color: rgba(255,255,255,.7); }

/* ---------- Certificates / trust wall ---------- */
.cert-wall { display: flex; flex-wrap: wrap; gap: .8rem; }
.cert-chip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem;
  border: 1px solid var(--line); border-radius: 100px; background: #fff; font-weight: 700;
  font-family: var(--font-display); font-size: .92rem; color: var(--ink);
}
.cert-chip svg { width: 18px; height: 18px; color: var(--core); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(150deg, var(--lime-soft), #fff);
  border: 1px solid var(--line); min-height: 340px; position: relative; padding: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.feature-list { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .9rem; }
.feature-list .fl-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--lime-soft); color: var(--core-deep); display: grid; place-items: center; }
.feature-list .fl-ic svg { width: 20px; height: 20px; }
.feature-list b { font-family: var(--font-display); display: block; color: var(--ink); margin-bottom: .15rem; }
.feature-list p { font-size: .92rem; }

/* ---------- Category tiles ---------- */
.cat-tile { border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line); position: relative; overflow: hidden; }
.cat-tile--supp { background: linear-gradient(160deg, rgba(35,78,132,.12), #fff 70%); }
.cat-tile--cosmo { background: linear-gradient(160deg, rgba(201,139,107,.14), #fff 70%); }
.cat-tile .cat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.cat-tile--supp .cat-ic { background: var(--core); color: #fff; }
.cat-tile--cosmo .cat-ic { background: var(--cosmo); color: #fff; }
.cat-tile--pet { background: linear-gradient(160deg, rgba(62,124,177,.14), #fff 70%); }
.cat-tile--pet .cat-ic { background: #3E7CB1; color: #fff; }
.pill--pet { background: rgba(62,124,177,.14); color: #2C5E88; }
.cat-tile h3 { margin-bottom: .6rem; }
.cat-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.cat-tags span { font-size: .82rem; padding: .35rem .8rem; border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Steps / onboarding ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); }
.step-row:last-child { border-bottom: none; }
.step-row .sn { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--core); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.step-row h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step-row p { font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; background: linear-gradient(140deg, var(--forest), var(--core-deep)); color: #fff; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% -20%, rgba(120,214,92,.45), transparent 60%); z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 600px; margin: 0 auto 2rem; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .chev { transition: transform .25s; flex: none; color: var(--core); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.4rem 1.3rem; font-size: .96rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .98rem; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--cloud); color: var(--ink); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--core-bright); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-aside { display: grid; gap: 1.4rem; align-content: start; }
.form-aside .fa-item { display: flex; gap: .9rem; }
.form-aside .fa-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--core); color: #fff; display: grid; place-items: center; }
.form-aside b { font-family: var(--font-display); display: block; color: var(--ink); }
.form-aside p { font-size: .9rem; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: .8rem; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; padding: .35rem .8rem; border-radius: 100px; background: var(--lime-soft); color: var(--core-deep); font-family: var(--font-display); }
.pill--green { background: rgba(35,78,132,.14); color: var(--core-deep); }
.pill--copper { background: rgba(201,139,107,.16); color: var(--cosmo); }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--cloud); font-size: .92rem; }
.compare thead th.col-us { background: var(--core); color: #fff; }
.compare td.col-us { background: rgba(23,169,95,.06); color: var(--ink); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.compare .x { color: #B23B3B; }
.compare .c { color: var(--core); }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Profit calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.calc-card { background: var(--cloud); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.calc-row span { color: var(--muted); font-size: .95rem; }
.calc-row b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.calc-slider { margin: 1.4rem 0 .4rem; }
.calc-slider label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; font-family: var(--font-display); }
.calc-slider input[type=range] { width: 100%; accent-color: var(--core-bright); height: 6px; }
.calc-result { text-align: center; margin-top: 1.2rem; }
.calc-result b { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3rem); color: var(--core-deep); font-weight: 800; display: block; line-height: 1; }
.calc-result span { font-size: .9rem; color: var(--muted); }
.calc-media { border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--lime-soft), #fff); border: 1px solid var(--line); min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 2rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { margin-top: -88px; padding: calc(88px + clamp(2rem,5vw,3.5rem)) 0 clamp(2rem,4vw,3rem); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:
  radial-gradient(900px 480px at 85% -20%, rgba(35,78,132,.06), transparent 60%),
  linear-gradient(180deg, #FCFBF7, #F5F2EB); }
.page-hero .breadcrumb { font-size: .85rem; color: #3A4B5E; margin-bottom: 1rem; }
.page-hero .breadcrumb a:hover { color: var(--core-deep); }
.page-hero h1 { max-width: 900px; margin-bottom: 1.1rem; }
.page-hero .lead { max-width: 700px; color: #2B3A4D; }
.page-hero .hero-cta { margin-top: 1.8rem; margin-bottom: 0; }

/* ---------- Callout ---------- */
.callout { border-left: 4px solid var(--core-bright); background: var(--cloud); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; }
.callout b { font-family: var(--font-display); color: var(--core-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #fff; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand b { color: var(--lime); }
.footer-brand-chip { display: inline-flex; background: #fff; padding: 9px 13px; border-radius: 13px; }
.footer-brand-chip img { height: 26px; display: block; width: auto; }
.compliance-line { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: 1.4rem; }
.footer-about { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.5); margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,.8); font-size: .94rem; padding: .35rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Footer legal data ---------- */
.footer-legal-data { color: rgba(255,255,255,.45); font-size: .8rem; line-height: 1.7; margin-top: 1.1rem; }

/* ---------- Consent / RODO ---------- */
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: .2rem; accent-color: var(--core-bright); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--core); text-decoration: underline; }

/* ---------- Legal prose ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin: 1.9rem 0 .6rem; }
.legal p { margin-bottom: .8rem; }
.legal a { color: var(--core); text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; background: var(--forest); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.05rem 1.3rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; flex: 1 1 320px; }
.cookie-bar a { color: var(--lime); text-decoration: underline; }
.cookie-bar .cookie-actions { display: flex; gap: .6rem; flex: none; }
.cookie-bar .btn { padding: .6rem 1.15rem; font-size: .9rem; }
.cookie-bar .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cookie-bar .btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar .cookie-actions { justify-content: stretch; } .cookie-bar .btn { flex: 1; justify-content: center; } }

/* ---------- Placeholder blocks ---------- */
.ph { border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(160deg, var(--cloud), #fff 90%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted-2); padding: 1.6rem; gap: .55rem; width: 100%; }
.ph > svg { width: 30px; height: 30px; opacity: .4; color: var(--muted-2); }
.ph b { font-family: var(--font-display); font-size: .95rem; color: var(--muted); }
.ph small { font-size: .8rem; color: var(--muted-2); max-width: 260px; }

/* ---------- Cert strip ---------- */
.cert-label { text-align: center; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.2rem; }
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.6rem; }
.cert-row span { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--muted); letter-spacing: .01em; }

/* ---------- Product / case cards ---------- */
.prod-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .2s ease; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-card .ph { border: none; border-radius: 0; }
.prod-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tech-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--cloud); }
.section-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prod-body { padding: clamp(1.3rem, 2vw, 1.7rem); }
.prod-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--lime-soft); color: var(--core-deep); margin-bottom: .7rem; }
.prod-ic svg { width: 22px; height: 22px; }
.prod-body h3 { margin-bottom: .4rem; }
.prod-body p { font-size: .95rem; }

/* ---------- Packaging tabs (opakowania) ---------- */
.pack-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 100px; padding: 5px; width: fit-content; margin: 0 auto 2.4rem; }
.pack-tab { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--muted-2); background: transparent; border: 0; border-radius: 100px; padding: .55rem 1.3rem; cursor: pointer; transition: background .15s, color .15s; }
.pack-tab:hover { color: var(--ink); }
.pack-tab.is-active { background: var(--core); color: #fff; }
.pack-panel[hidden] { display: none; }
.pack-empty { text-align: center; max-width: 540px; margin: 0 auto; padding: clamp(2.4rem, 5vw, 4rem) 1.6rem; background: var(--cloud); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.pack-empty h3 { margin-bottom: .5rem; }
.pack-empty p { color: var(--muted); margin-bottom: 1.2rem; }

/* ---------- Realizacje: wyszarzone zdjęcia, kolor po najechaniu ---------- */
.cases-veil .prod-card img { filter: grayscale(1); opacity: .88; transition: filter .4s ease, opacity .4s ease; }
.cases-veil .prod-card:hover img, .cases-veil .prod-card:focus-within img { filter: none; opacity: 1; }
@media (hover: none) { .cases-veil .prod-card img { filter: none; opacity: 1; } }

/* ---------- Step cards ---------- */
.step-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.5rem, 2.2vw, 2rem); }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--core); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: .9rem; }
.step-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step-card p { font-size: .93rem; }

/* ---------- Quote cards ---------- */
.quote-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.6rem, 2.5vw, 2.2rem); }
.quote-card .q-mark { color: var(--core-bright); display: inline-block; }
.quote-card .q-mark svg { width: 34px; height: 34px; }
.quote-card > p { font-size: 1.05rem; color: var(--ink); margin: .6rem 0 1.4rem; line-height: 1.6; }
.q-author { display: flex; align-items: center; gap: .8rem; }
.q-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--cloud); display: grid; place-items: center; color: var(--muted-2); }
.q-avatar svg { width: 20px; height: 20px; }
.q-author b { font-family: var(--font-display); display: block; }
.q-author small { color: var(--muted-2); font-size: .85rem; }

/* ---------- Callout wide ---------- */
.callout-wide { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
@media (max-width: 760px) { .callout-wide { flex-direction: column; align-items: flex-start; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain-step:nth-child(2)::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-media { display: none; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1rem 1.2rem; gap: .2rem; border-radius: 20px; box-shadow: var(--shadow-lg);
  }
  .site-header.open .nav-links a { padding: .7rem 0; width: 100%; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .site-header.open .nav-links a:hover { color: var(--core); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain-step::after { display: none !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge--tl { left: 0; }
  .hero-badge--br { right: 0; }
  body { font-size: 16px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
}
