/* =========================================================
   Glopack — style.css
   Apple.com-inspired layout: sticky blurred nav, full-bleed
   block sections, horizontally scrolling product carousel.
   ========================================================= */

:root {
  --orange-light: #F47922;
  --orange-mid: #F36421;
  --orange-dark: #A6440D;
  --black: #000000;
  --dark-gray: #1D1D1F;
  --green-light: #6E9282;
  --green-dark: #173C37;
  --gray: #E9E9EB;
  --white: #FFFFFF;

  --text-gray: #6E6E73;
  --nav-height: 80px;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-width: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  /* --nav-scroll: 0 (na samej górze strony) → 1 (przewinięte); ustawiane w script.js.
     Przezroczystość tła i rozmycie są wyprowadzone z tej samej wartości,
     więc zawsze zmieniają się razem i oba są zerowe na górze strony. */
  --nav-bg-alpha: calc(var(--nav-scroll, 0) * 0.7);
  --nav-blur: calc(var(--nav-scroll, 0) * 20px);
  --nav-saturate: calc(100% + var(--nav-scroll, 0) * 80%);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(23, 60, 55, var(--nav-bg-alpha));
  backdrop-filter: saturate(var(--nav-saturate)) blur(var(--nav-blur));
  -webkit-backdrop-filter: saturate(var(--nav-saturate)) blur(var(--nav-blur));
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--nav-bg-alpha) * 0.1));
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 980px;
  background: var(--orange-mid);
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--orange-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav is fixed and overlaps the hero at the top of the page (see .nav);
   sections below don't need extra offset since anchors already account
   for it via scroll-padding-top. */

/* =========================================================
   Sections — generic block system
   ========================================================= */

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-black {
  background: var(--black);
  color: var(--white);
}

.section-gray {
  background: var(--gray);
  color: var(--black);
}

.section-green {
  background: var(--green-light);
  color: var(--black);
}

.section-white {
  background: var(--white);
  color: var(--black);
}

.section-dark-gray {
  background: var(--dark-gray);
  color: var(--white);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--orange-mid);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1rem, 2.25vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 20px;
  text-align: left;
}

.quotation {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 20px;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.4;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.section-black .section-subtitle,
.section-dark-gray .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.section-title-orange {
  color: var(--orange-mid);
}

.section-title-gradient-green {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-photo {
  position: relative;
  isolation: isolate;
  background-color: var(--green-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}

.section-photo-fixed {
  background-attachment: fixed;
}

.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(23, 60, 55, 0.78);
}

.section-photo.light-mask::before {
  background: rgba(255, 255, 255, 0.55);
}

.section-photo .section-title,
.section-photo .section-text,
.section-photo .quotation {
  color: var(--white);
}

.section-photo.light-mask .section-title,
.section-photo.light-mask .section-text,
.section-photo.light-mask .quotation {
  color: var(--black);
}

.section-photo .help-card {
  color: var(--black);
  background: transparent;
  border: 2px solid var(--orange-mid);
  box-shadow: none;
}

.section-photo .help-card-title,
.section-photo .help-card-text {
  color: var(--black);
}

.section-gray .section-subtitle,
.section-white .section-subtitle,
.section-green .section-subtitle {
  color: var(--black);
}

.section-green .section-text {
  color: rgba(0, 0, 0, 0.85);
}

.section-text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 780px;
  margin: 24px auto 0;
  text-align: left;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 900px;
  margin: 40px auto 0;
}

.client-logos img {
  width: 140px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 640px) {
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .client-logos img {
    width: 110px;
  }
}

.section-heading {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 780px;
  margin: 48px auto 0;
  text-align: left;
}

.section-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.section-columns .section-heading,
.section-columns .section-text {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 640px) {
  .section-columns {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Karty pomocy w wyborze folii ("Nie wiesz jakiej folii...")
   ========================================================= */

.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.help-card {
  background: var(--white);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.help-card-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.help-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0 0 28px;
}

.help-card .btn {
  margin-top: auto;
}

.help-card-media {
  width: calc(100% + 80px);
  margin: -40px -40px 24px;
  aspect-ratio: 16 / 10;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}

.help-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.help-card-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: -6px 0 14px;
}

/* =========================================================
   Sekcja z tłem (kafelek z misją na zdjęciu krajobrazu)
   ========================================================= */

.landscape-section {
  background: url("img/landscape.webp") center/cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.landscape-section .wrap {
  width: 100%;
}

.landscape-card {
  max-width: 620px;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
  .landscape-card {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .help-cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .help-cards {
    grid-template-columns: 1fr;
  }
}

.section-divider {
  max-width: var(--max-width);
  margin: 64px auto;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Rozwijane akapity ze zdjęciem (accordion + media)
   ========================================================= */

.accordion-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.accordion-list {
  display: flex;
  flex-direction: column;
}

.accordion-heading {
  margin: 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.accordion-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.accordion-header::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-gray);
}

.accordion-item.is-open .accordion-header::after {
  content: "\2212";
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel .help-card-text {
  margin: 0;
  padding: 0 4px 24px;
}

.accordion-panel-inner:has(.accordion-filter-trigger) .help-card-text {
  padding-bottom: 8px;
}

.accordion-filter-trigger {
  margin: 4px 4px 24px;
}

.accordion-media {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-media-frame {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}

.accordion-media-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 22px;
}

.accordion-media-label {
  position: absolute;
  z-index: 2;
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  text-shadow: 0 0 6px var(--white), 0 0 3px var(--white);
  pointer-events: none;
}

.accordion-media-label.is-visible {
  display: block;
}

.accordion-media-label-bl {
  left: 12px;
  bottom: 12px;
}

.accordion-media-label-br {
  right: 12px;
  bottom: 12px;
}

.accordion-media-label-tr {
  right: 12px;
  top: 12px;
}

@media (max-width: 900px) {
  .accordion-media-grid {
    grid-template-columns: 1fr;
  }

  .accordion-media {
    position: static;
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* =========================================================
   Hero (zielony baner)
   ========================================================= */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  width: 100%;
  min-width: 0;
}

.hero-scroll-link {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.hero-scroll-link::after {
  content: "↓";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.hero-scroll-link:hover {
  opacity: 1;
}

.hero-scroll-link:hover::after {
  transform: translateY(3px);
}

.hero-photo .hero-title,
.hero-photo .hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-photo {
  min-height: 82vh;
  padding: 160px 24px 120px;
  background-image:
    linear-gradient(135deg, rgba(110, 146, 130, 0.45) 0%, rgba(23, 60, 55, 0.55) 100%),
    url('img/hero-baner.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center, left center;
  background-size: cover, cover;
}

/* Na większych ekranach baner wypełnia całą wysokość okna w formacie 16:9
   (jak .hero-video); na wąskich ekranach zostaje przy min-height, żeby
   tytuł i podtytuł miały wystarczająco miejsca. */
@media (min-width: 901px) {
  .hero-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 100vh;
  }
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 900px;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  margin: 0 0 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 24px;
  text-align: center;
}

/* =========================================================
   Industry grid (kafelki branż, pełna szerokość)
   ========================================================= */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.industry-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.industry-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Icon grid (szara sekcja - rodzaje folii)
   ========================================================= */

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 48px auto 0;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.icon-image {
  width: 192px;
  height: 192px;
  object-fit: contain;
  margin-bottom: 18px;
}

.icon-caption {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.section-cta-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.section-black .section-cta-note,
.section-dark-gray .section-cta-note {
  color: rgba(255, 255, 255, 0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--orange-mid);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.btn:hover {
  background: var(--orange-dark);
}

/* .btn on a <button>; :where keeps the specificity low, so .btn-outline borders still apply */
:where(button).btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-outline {
  background: transparent;
  color: var(--orange-mid);
  border: 2px solid var(--orange-mid);
}

.btn-outline:hover {
  background: transparent;
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   Video embed (szara sekcja z filmem)
   ========================================================= */

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 50.625%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Kontakt (dwie kolumny: dane kontaktowe + mapa)
   ========================================================= */

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 48px;
}

.contact-info {
  flex: 1 1 340px;
}

.contact-info .section-title,
.contact-info .section-cta,
.contact-info .section-text {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.contact-info .section-cta {
  margin-top: 0;
  margin-bottom: 32px;
}

.contact-map {
  position: relative;
  flex: 2 1 480px;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Feature list (jasno zielona sekcja)
   ========================================================= */

.feature-list {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-list-horizontal {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-list-vertical {
  grid-template-columns: 1fr;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 22px 26px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.section-white .feature-list li {
  background: var(--gray);
}

.feature-list strong {
  color: var(--text-gray);
}

.feature-list .stat {
  font-size: 2em;
  line-height: 1;
  color: var(--green-light);
}

.section-photo .feature-list .stat {
  color: var(--green-dark);
}

.section-photo .feature-list strong {
  color: var(--dark-gray);
}

.feature-list a,
.section-text a {
  color: var(--orange-dark);
  text-decoration: underline;
}

.feature-list a:hover,
.section-text a:hover {
  color: var(--orange-mid);
}

.feature-list li p {
  margin: 0;
}

.feature-list li p + p {
  margin-top: 10px;
}

.feature-list-vertical li {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.award-img {
  width: 33.333%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
}

.award-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .feature-list-vertical li {
    flex-direction: column;
  }

  .award-img {
    width: 100%;
  }
}

/* =========================================================
   Filter bar (oferta.html - filtrowanie karuzeli)
   ========================================================= */

.filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 8px;
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  flex: 1;
  min-width: 0;
}

.filter-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.filter-col-toggle {
  display: block;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gray);
  cursor: default;
  text-align: left;
}

.filter-col-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Niewidoczny odpowiednik nagłówka kolumny nad "Wszystkie" i "Pozostałe",
   żeby te przyciski wypadały na wysokości pierwszych przycisków w innych
   kolumnach, a nie na wysokości ich tytułów. */
.filter-col-spacer {
  visibility: hidden;
}

.filter-col-end {
  flex-shrink: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 980px;
  background: transparent;
  color: var(--orange-light);
  border: 2px solid var(--orange-light);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--orange-dark);
  color: var(--white);
  background: rgba(244, 121, 34, 0.15);
}

.filter-btn.active {
  background: var(--orange-mid);
  color: var(--white);
  border-color: var(--orange-mid);
}

.filter-btn.active:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.filter-btn-green {
  color: var(--green-light);
  border-color: var(--green-light);
}

.filter-btn-green:hover {
  border-color: var(--green-dark);
  color: var(--white);
  background: rgba(23, 60, 55, 0.15);
}

.filter-btn-green.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.filter-btn-green.active:hover {
  background: color-mix(in srgb, var(--green-dark) 80%, black);
  border-color: color-mix(in srgb, var(--green-dark) 80%, black);
}

/* Filter that would leave the carousel empty with the current selection. */
.filter-btn:disabled,
.filter-btn:disabled:hover {
  background: transparent;
  color: #9a9a9a;
  border-color: #cfcfcf;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Na wąskich ekranach każda grupa (poza "Wszystkie" i "Pozostałe",
   które zostają pojedynczymi przyciskami) chowa się pod rozwijaną listą. */
@media (max-width: 640px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-groups {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .filter-col {
    width: 100%;
  }

  .filter-col:has(.filter-col-toggle:not(.filter-col-spacer)) {
    border-bottom: 1px solid var(--gray);
    padding-bottom: 10px;
  }

  .filter-col-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 2px;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--black);
    cursor: pointer;
  }

  .filter-col-spacer {
    display: none;
  }

  .filter-col-toggle::after {
    content: "▾";
    font-size: 12px;
    color: var(--orange-mid);
    transition: transform 0.2s var(--ease);
  }

  .filter-col-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .filter-col-options {
    display: none;
    padding-top: 4px;
  }

  .filter-col.open .filter-col-options {
    display: flex;
  }
}

/* =========================================================
   Carousel (Poznaj naszą ofertę)
   ========================================================= */

.carousel {
  position: relative;
  margin-top: 56px;
  margin-left: 0;
  margin-right: -24px;
}

@media (min-width: 1248px) {
  .carousel {
    margin-right: calc(-24px - (100vw - 1200px) / 2);
  }
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-top: 20px;
  padding-right: 24px;
  padding-bottom: 36px;
  padding-left: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.tile-spacer {
  flex: 0 0 280px;
  pointer-events: none;
}

.tile {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 280px;
  background: var(--black);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: block;
  text-decoration: none;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.tile-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--black);
}

.tile-caption {
  padding: 18px 20px 24px;
  color: var(--white);
}

.tile-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tile-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tile-features li {
  position: relative;
  padding-left: 16px;
}

.tile-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-mid);
}

.tile.is-hidden {
  display: none;
}

.feature-tile {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 300px;
  background: var(--black);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.feature-tile-media {
  position: relative;
  aspect-ratio: 3 / 4;
}

.feature-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
}

.feature-tile-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.feature-tile-text {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.feature-tile-caption {
  padding: 18px 20px 24px;
}

.feature-tile-usage {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.feature-tile-usage strong {
  color: var(--orange-light);
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-arrow:hover {
  background: var(--green-light);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   Product feature (oferta.html - sekcje produktów)
   ========================================================= */

.product-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.product-images {
  flex: 1 1 320px;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.product-images-single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.product-images-single img {
  aspect-ratio: 4 / 3;
}

.product-specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.product-specs strong {
  color: var(--text-gray);
  font-weight: 600;
}

.product-content {
  flex: 1 1 380px;
}

.product-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  text-align: left;
}

.product-text {
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  margin: 0 0 16px;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-list li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.5;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-mid);
}

.product-cta {
  text-align: left;
  margin-top: 24px;
}

/* =========================================================
   Offer grid (oferta.html)
   ========================================================= */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.offer-grid .tile {
  width: 100%;
}

.offer-grid .tile-image {
  aspect-ratio: 3 / 2;
}

/* =========================================================
   Cookie policy
   ========================================================= */

.policy {
  max-width: 860px;
  margin: 0 auto;
}

.policy .section-title {
  margin: 56px 0 0;
}

.policy .section-title:first-child {
  margin-top: 0;
}

.policy .section-text {
  max-width: none;
  margin: 12px 0 0;
}

.policy .section-text a {
  color: var(--green-dark);
  text-decoration: underline;
}

.policy .section-text a:hover {
  color: var(--orange-mid);
}

.policy .section-cta {
  margin-top: 24px;
  text-align: left;
}

.policy-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 10px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--gray);
}

.policy-table th {
  background: var(--gray);
  font-weight: 600;
}

.policy-table td {
  color: var(--text-gray);
}

.policy-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--black);
  white-space: nowrap;
}

.policy-empty {
  font-style: italic;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  padding: 32px 0;
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
  color: var(--orange-light);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(23, 60, 55, 0.97);
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a,
  .nav-links .nav-cta {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 120px 20px 72px;
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Płynne pojawianie się elementów przy scrollowaniu
   Selektory muszą pokrywać się z listą w script.js
   (funkcja inicjująca scroll-reveal).
   ========================================================= */

.section-title,
.quotation,
.section-text,
.feature-list li,
.help-card,
.accordion-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease, ease), transform 0.7s var(--ease, ease);
  transition-delay: var(--reveal-delay, 0s);
}

.section-title.is-visible,
.quotation.is-visible,
.section-text.is-visible,
.feature-list li.is-visible,
.help-card.is-visible,
.accordion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-title,
  .quotation,
  .section-text,
  .feature-list li,
  .help-card,
  .accordion-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
