/* overflow-x (nie overflow!) — pełny "clip" na body blokował kółko myszy: */
/* 'clip' nie tworzy mechanizmu scrollowania dla usera, tylko dla JS (scrollTo działał, kółko nie). */
.home { overflow-x: clip; }
.scroll-progress { position: fixed; z-index: 1200; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan-400), var(--blue-500)); }

/* Scroll-snap przeniesiony do global.css — działa na wszystkich stronach, nie tylko na home. */

.hero { padding: 0; min-height: calc(94svh - var(--header-h)); isolation: isolate; background: #07192e; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: url('../images/hero-plant.webp') center/cover no-repeat; transform: scale(1.035); }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,18,33,.93) 0%, rgba(6,24,43,.77) 40%, rgba(7,28,48,.28) 71%, rgba(5,19,34,.22) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(4,17,31,.03), rgba(4,17,31,.42)); }
.hero .container { width: min(calc(100% - 8vw), 1650px); }
.hero-copy { max-width: 820px; padding: 9vh 0 8vh; color: #fff; }
.hero-company { margin-bottom: clamp(28px, 5vh, 56px); font-size: .95rem; letter-spacing: .02em; color: #d7e7f5; }
.hero .display { font-size: clamp(2.7rem, 6.1vw, 6.6rem); }
.hero .display span { display: block; color: var(--cyan-400); }
.hero-sub { margin: 30px 0 16px; font-size: clamp(1.35rem, 2.15vw, 2rem); font-weight: 500; }
.hero-desc { max-width: 710px; margin: 0; color: #d4e2ee; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-scroll { position: absolute; left: 4vw; bottom: 30px; display: flex; align-items: center; gap: 12px; color: #d6e8f5; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.hero-scroll::after { content: ""; width: 1px; height: 28px; background: currentColor; animation: pulseLine 1.8s ease-in-out infinite; }
@keyframes pulseLine { 0%,100% { transform: scaleY(.55); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
.hero-rail { position: absolute; right: 4vw; bottom: 42px; display: grid; gap: 3px; justify-items: end; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero-rail::after { content: ""; width: 2px; height: 86px; margin-top: 7px; background: linear-gradient(var(--cyan-400), transparent); }
.hero .g1 { width: 190px; height: 190px; right: -50px; top: 12%; opacity: .55; }
.hero .g2 { width: 130px; height: 130px; right: 21%; bottom: 4%; opacity: .2; }

.tech-intro { background: #f5f9fd url('../images/molecule-light.webp') center/cover no-repeat; }
.tech-intro::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,251,255,.97) 0%, rgba(247,251,255,.91) 50%, rgba(247,251,255,.30) 100%); }
.tech-intro .container { display: grid; gap: 54px; }
.tech-intro-copy { max-width: 850px; }
.tech-intro-copy .lead { max-width: 620px; margin-top: 26px; }
.process-strip { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 18px; align-items: center; }
.process-step { position: relative; display: grid; justify-items: center; gap: 14px; min-width: 0; text-align: center; }
.process-step:not(:last-child)::after { content: "→"; position: absolute; top: 30px; right: -17px; color: var(--blue-700); font-weight: 800; }
.process-step strong { font-size: .78rem; line-height: 1.25; letter-spacing: .02em; }
.tech-tagline { margin-top: -20px; text-align: center; font-weight: 650; }
.tech-intro .g1 { width: 170px; height: 170px; left: -56px; bottom: 12%; }
.tech-intro .g2 { width: 110px; height: 110px; right: 6%; top: 11%; opacity: .5; }

.dark-process { background: #06172b url('../images/bottling-line.webp') center/cover no-repeat; isolation: isolate; }
.dark-process::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4,17,31,.96) 0%, rgba(5,24,43,.86) 52%, rgba(5,24,43,.32) 100%); }
.dark-process .lead { max-width: 790px; margin-top: 22px; }
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 52px; }
.timeline-item { position: relative; display: grid; justify-items: center; gap: 13px; text-align: center; }
.timeline-item:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 28px; color: #91cafa; }
.timeline-item .icon-ring { background: rgba(5,25,44,.48); border-color: rgba(141,201,249,.4); }
.timeline-item .icon-ring svg { stroke: #eaf6ff; }
.timeline-item strong { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.dark-process .btn { margin-top: 34px; }
.dark-process .g1 { width: 138px; height: 138px; right: -38px; bottom: 9%; background: rgba(43,137,226,.75); }
.dark-process .g2 { width: 74px; height: 74px; left: 3%; top: 15%; opacity: .45; }

.services { background: linear-gradient(180deg,#fff,#f4f8fc); }
.services .h2 { max-width: 1000px; }
.service-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 44px; }
.service-card { min-height: 330px; display: flex; flex-direction: column; border: 1px solid rgba(13,42,75,.09); background: rgba(255,255,255,.92); box-shadow: 0 10px 34px rgba(5,24,44,.06); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-image { height: 104px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(4,20,37,.28)); }
/* Każda karta usługi ma własne, unikalne zdjęcie (podgląd docelowej podstrony) — bez powtórek. */
.card-image--dev { background-image: url('../images/dev-abstract-formula.webp'); }
.card-image--tech { background-image: url('../images/tech-production-line.webp'); }
.card-image--quality { background-image: url('../images/quality-texture.webp'); }
.card-image--recipes { background-image: url('../images/recipes-bottles-collage.webp'); }
.card-image--contract { background-image: url('../images/contract-plant-hall.webp'); }
.card-image--raw { background-image: url('../images/raw-material-powder.webp'); }
.card-image--extracts { background-image: url('../images/extracts-ingredients.webp'); }
.service-body { display: flex; flex: 1; flex-direction: column; padding: 20px 18px; }
.service-number { color: var(--blue-500); font-size: .67rem; font-weight: 800; letter-spacing: .09em; }
.service-card h3 { margin: 12px 0 10px; min-height: 52px; font-size: 1rem; line-height: 1.05; letter-spacing: -.02em; }
.service-card p { margin: 0; color: #5d7287; font-size: .76rem; line-height: 1.5; }
.card-arrow { margin-top: auto; padding-top: 18px; color: var(--blue-700); font-size: 1.5rem; }
.services-end { margin-top: 34px; text-align: center; color: #657c93; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.services .g1 { width: 180px; height: 180px; right: -55px; top: 15%; }
.services .g2 { width: 105px; height: 105px; left: 2%; bottom: 4%; opacity: .7; }

.partner { padding: 0; background: #081728; }
.partner-layout { min-height: calc(94svh - var(--header-h)); display: grid; grid-template-columns: 58% 42%; }
.partner-image { position: relative; min-height: 650px; background: url('../images/partner-technicians.webp') center/cover no-repeat; }
.partner-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,31,.04), rgba(4,17,31,.35)); }
.partner-content { position: relative; display: grid; align-content: center; padding: clamp(58px, 7vw, 112px); color: #fff; background: linear-gradient(135deg, #081728, #0c2541); }
.partner-content .lead { margin-top: 24px; color: #cbdbea; }
.competence-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; margin-top: 42px; }
.competence-list strong { display: block; margin-bottom: 7px; color: #fff; font-size: .78rem; letter-spacing: .08em; }
.competence-list span { color: #97aec2; font-size: .85rem; line-height: 1.55; }
.partner-content .g1 { width: 130px; height: 130px; top: 3%; right: 7%; opacity: .25; }

.solutions { background: #06172b url('../images/solutions-products-flatlay.webp') center/cover fixed no-repeat; isolation: isolate; }
.solutions::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, rgba(4,17,31,.97), rgba(5,27,49,.86)); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.solution-card { position: relative; min-height: 240px; padding: 30px; border: 1px solid rgba(147,204,250,.18); background: rgba(7,35,61,.67); backdrop-filter: blur(8px); overflow: hidden; }
.solution-card::before { content: ""; position: absolute; width: 84px; height: 84px; right: -24px; top: -24px; background: rgba(43,149,238,.16); }
.solution-card h3 { margin: 0 0 14px; font-size: 1.25rem; }
.solution-card p { margin: 0; color: #a9c0d3; line-height: 1.7; }
.solution-flow { margin-top: 28px; color: #7dbff1; font-size: .82rem; font-weight: 750; }
.solutions .btn { margin-top: 32px; }

.external { background: linear-gradient(180deg,#f8fbfe,#fff); }
.external-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 74px; align-items: center; }
.meeting-mosaic { position: relative; min-height: 560px; }
.mosaic-main { position: absolute; inset: 7% 8% 0 0; background: url('../images/external-plant-hall.webp') center/cover no-repeat; box-shadow: var(--shadow); }
.mosaic-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(5,27,49,.15), rgba(5,27,49,.5)); }
.mosaic-square { position: absolute; width: 33%; aspect-ratio: 1; background: var(--blue-600); }
.mosaic-square.a { right: 0; top: 0; }
.mosaic-square.b { left: -4%; bottom: 10%; background: #e0e9f2; }
.mosaic-hex { position: absolute; width: 31%; aspect-ratio: 1; right: 5%; bottom: -4%; background: linear-gradient(135deg, rgba(68,201,245,.75), rgba(24,96,178,.9)); clip-path: polygon(25% 7%,75% 7%,100% 50%,75% 93%,25% 93%,0 50%); }
.external-copy .lead { margin-top: 24px; }
.external-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.external-tags span { padding: 8px 12px; border: 1px solid var(--line); background: #fff; font-size: .72rem; font-weight: 700; }
.external .btn { margin-top: 32px; }

.why { background: #fff; }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.reason-list { display: grid; gap: 2px; }
.reason { padding: 30px 0 30px 26px; border-left: 2px solid #dbe7f2; border-bottom: 1px solid #e5edf5; transition: border-color .25s, background .25s; }
.reason:hover { border-left-color: var(--blue-500); background: linear-gradient(90deg, rgba(43,149,238,.06), transparent); }
.reason strong { display: block; margin-bottom: 9px; font-size: .88rem; letter-spacing: .06em; }
.reason p { margin: 0; color: #60778d; line-height: 1.6; }
.why .g1 { width: 190px; height: 190px; right: 2%; bottom: 4%; opacity: .75; }
.why .g2 { width: 120px; height: 120px; left: 2%; top: 10%; opacity: .35; }

.about-home { background: linear-gradient(90deg, #f6f9fc 0%, #f6f9fc 58%, #e6eef6 58%, #e6eef6 100%); }
.about-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; }
.about-copy .lead { margin-top: 26px; }
.about-copy .btn { margin-top: 32px; }
.about-visual { position: relative; min-height: 560px; }
.about-photo { position: absolute; inset: 0 8% 4% 0; background: url('../images/about-material-macro.webp') center/cover no-repeat; box-shadow: var(--shadow); }
.about-block { position: absolute; width: 34%; aspect-ratio: 1; right: 0; top: 12%; background: var(--blue-600); }
.about-hex { position: absolute; width: 34%; aspect-ratio: 1; left: -7%; bottom: -4%; background: rgba(6,36,64,.9); clip-path: polygon(25% 7%,75% 7%,100% 50%,75% 93%,25% 93%,0 50%); }

.final-cta { min-height: 86svh; color: #fff; background: #061426; isolation: isolate; }
.final-cta::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url('../images/final-cta-abstract.webp') center/cover no-repeat; opacity: .27; }
.final-cta::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, rgba(4,17,31,.98), rgba(5,27,49,.82)); }
.final-inner { max-width: 1050px; }
.final-cta .lead { max-width: 760px; margin-top: 28px; color: #c8daea; }
.final-questions { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: #9eb8cd; font-size: .92rem; }
.final-cta .btn { margin-top: 34px; }
.final-cta .g1 { width: 200px; height: 200px; right: 3%; top: 15%; opacity: .36; }
.final-cta .g2 { width: 120px; height: 120px; right: 16%; bottom: 13%; opacity: .55; }

@media (max-width: 1300px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card:last-child { grid-column: span 2; }
  .process-strip { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process-step:nth-child(3)::after { display: none; }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .timeline-item:nth-child(4)::after { display: none; }
}

@media (max-width: 1020px) {
  .screen { min-height: auto; padding-block: 82px; }
  .hero { min-height: calc(94svh - var(--header-h)); }
  .hero .container { width: min(calc(100% - 36px), var(--container)); }
  .hero-rail { display: none; }
  .hero-scroll { left: 18px; bottom: 18px; }
  .partner-layout { min-height: auto; grid-template-columns: 1fr; }
  .partner-image { min-height: 58svh; }
  .partner-content { padding: 74px min(7vw,70px); }
  .solution-grid { grid-template-columns: 1fr; }
  .external-grid, .why-grid, .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .meeting-mosaic, .about-visual { min-height: 520px; }
  .about-home { background: #f6f9fc; }
}

@media (max-width: 760px) {
  .hero-copy { padding: 10vh 0 12vh; }
  .hero-company { margin-bottom: 24px; }
  .hero-sub { margin-top: 22px; }
  .hero-actions { display: grid; }
  .hero-scroll { display: none; }
  .process-strip, .timeline { grid-template-columns: 1fr 1fr; }
  .process-step:not(:last-child)::after, .timeline-item:not(:last-child)::after { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:last-child { grid-column: auto; min-height: 300px; }
  .competence-list { grid-template-columns: 1fr; }
  .meeting-mosaic, .about-visual { min-height: 410px; }
  .mosaic-main { inset: 7% 2% 0 4%; }
  .mosaic-square { width: 26%; }
  .about-photo { inset: 0 2% 4% 2%; }
  .final-questions { display: grid; }
}

@media (max-width: 480px) {
  .process-strip, .timeline, .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .service-card h3 { min-height: auto; }
  .icon-ring { width: 64px; height: 64px; }
  .meeting-mosaic, .about-visual { min-height: 340px; }
}
