/* ==========================================================
   FONTS – Bai Jamjuree hostowana lokalnie (fonts/, licencja OFL)
========================================================== */
/* latin-ext */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   CSS VARIABLES
========================================================== */
:root {
  --color-red: #E31E24;
  --color-red-dark: #c0181d;

  /* Gradient dla czerwonych kwadratów (header CTA, hero, footer panel).
     Zmień tylko te dwie zmienne, aby zmienić gradient na wszystkich podstronach. */
  --gradient-red-start: #a61c28;   /* dolny lewy narożnik */
  --gradient-red-end:   #eb3d44;   /* górny prawy narożnik */
  --gradient-red: linear-gradient(to top right, var(--gradient-red-start), var(--gradient-red-end));

  --color-dark: #2C2C2C;
  --color-gray: #6B6B6B;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F5F5;
  --color-border: #E0E0E0;

  --font-family: 'Bai Jamjuree', sans-serif;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;

  --container-width: 2560px;
  --container-side-padding: clamp(1.5rem, 6.25vw, 10rem);
  --container-padding: 0 var(--container-side-padding);
  --logo-area-width: clamp(5rem, 5.859375vw, 9.375rem); /* 80px–150px; 150px @ 2560px */
  --tile-h: 260px;

  --header-height: 80px;
  --transition: 0.3s ease;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   RESET & BASE
========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable; /* reserve scrollbar space always — prevents layout shift */
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================
   UTILITY CLASSES
========================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: clamp(1.5rem, 3.633vw, 5.8125rem);
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 0.05rem;
}

.section-subtitle {
  font-size: clamp(0.875rem, 1.25vw, 2rem);
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================
   BUTTONS
========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-family);
  font-weight: var(--font-bold);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
}

.btn--booking {
  background-color: #003580;
  color: var(--color-white);
  border: 2px solid #003580;
}

.btn--booking:hover {
  background-color: #00224f;
  border-color: #00224f;
  transform: translateY(-2px);
}

.btn--booking img {
  height: 1.4rem;
  width: auto;
  display: block;
}

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

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

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

.btn--white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Hero external link buttons */
.csr-hero__btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.hero-ext-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-top: 1.5rem;
  width: 100%;
  min-width: 0;
}

.hero-ext-links .btn {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-ext-links__fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1877F2;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-ext-links__fb:hover {
  background-color: #1558c0;
  transform: translateY(-2px);
}

/* ==========================================================
   HEADER
========================================================== */
.header {
  position: static;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-white);
  overflow-x: clip;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  background-color: var(--color-white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  width: var(--logo-area-width);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: calc(var(--header-height) - 24px); /* 56px @ 80px header — fits with 12px top/bottom gap */
  width: auto;
  max-width: 100%;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 2.5rem);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header__nav-link {
  font-size: clamp(0.5rem, 1.5625vw - 0.875rem, 1.625rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active,
.header__nav-link[aria-current="page"] {
  color: var(--color-red);
}

.header__nav-link:hover::after,
.header__nav-link.active::after,
.header__nav-link[aria-current="page"]::after {
  width: 100%;
}

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

.header__cta .btn--outline:hover {
  background-color: transparent;
  color: var(--color-white);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 var(--container-side-padding) 0 1.5rem;
  margin-right: calc(-1 * var(--container-side-padding)); /* red extends to viewport edge */
  background: var(--gradient-red) fixed;
  position: relative;
}

/* Fill red beyond container on screens wider than --container-width */
.header__cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  bottom: 0;
  width: 50vw;
  background: var(--gradient-red) fixed;
  pointer-events: none;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hide nav-cta and home link on desktop */
.header__nav-cta {
  display: none;
}

.header__nav-link--home {
  display: none;
}

/* Hamburger active state */
.header__hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================
   HERO SECTION
========================================================== */
.hero {
  padding-top: 0;
  padding-bottom: 3rem;
  background-image:
    linear-gradient(to right, var(--color-white) var(--red-start, 72%), transparent var(--red-start, 72%)),
    var(--gradient-red);
  background-attachment: scroll, fixed;
  position: relative;
  overflow: hidden;
  min-height: calc(var(--header-height) + 240px);
}

/* Content block inside the container */
.hero__panels {
  display: block;
  position: relative;
  z-index: 3;
}

/* LEFT: social icons + text, constrained to white area */
.hero__left {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2.5rem 3.5rem 2.5rem 0;
  max-width: 45%;
}

/* Social icons column — width matches logo-area-width so hero content
   starts exactly at the right edge of the header logo container */
.hero__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
  width: var(--logo-area-width);
}

.hero__social a {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1;
  transition: color var(--transition);
}

.hero__social a:hover {
  color: var(--color-red);
}

/* Text block */
.hero__content {
  flex: 1;
}

.hero__title {
  font-size: clamp(1.375rem, 3.047vw, 4.875rem);
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__rule {
  width: 80px;
  height: 3px;
  background-color: var(--color-red);
  border: none;
  margin: 0 0 1.25rem;
}

.hero__text {
  font-size: clamp(0.875rem, 0.859vw, 1.375rem);
  color: var(--color-gray);
  line-height: 1.5;
}

/* Photo collage — overlaps white/red backgrounds, inset top/bottom, aligned to container right */
.hero__collage {
  position: absolute;
  top: 1.5rem;
  bottom: 3rem;
  left: 46vw;
  right: calc(var(--container-right, 0px) + var(--container-side-padding));
  overflow: hidden;
  z-index: 2;
  display: block;
}

.hero__collage img {
  object-position: right bottom; /* napis „Zobacz co robimy” zawsze widoczny */
  transition: transform 0.4s ease;
}

.hero__collage:hover img,
.hero__collage:focus-visible img {
  transform: scale(1.03);
}

.hero__col-img {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

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

.hero__col-img--1 {
  left: 0;
  width: 44%;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.hero__col-img--2 {
  left: 28%;
  width: 44%;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.hero__col-img--3 {
  right: 0;
  width: 44%;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

/* CTA label overlaid on photos */
.hero__cta-label {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 5;
}

.hero__cta-bar {
  display: block;
  width: 4px;
  align-self: stretch;
  background-color: var(--color-white);
  flex-shrink: 0;
  margin-top: 6px;
}

.hero__cta-text {
  font-size: clamp(1.75rem, 4vw, 5rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ==========================================================
   CATEGORY GRID (MARKI)
========================================================== */
.categories {
  padding: 5rem 0 0;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, var(--tile-h));
}

.cat-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.cat-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  transition: background 0.4s ease;
}

.cat-tile:hover .cat-tile__overlay {
  background: rgba(0,0,0,0.72);
}

.cat-tile__body {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  padding: 0.5rem 1.5rem 0;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tile:hover .cat-tile__body {
  transform: translateY(calc(-1 * (var(--tile-h) - 3rem - 100%)));
}

.cat-tile__sublabel {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 0.75rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  line-height: 1.4;
}

.cat-tile__title {
  font-size: clamp(0.875rem, 1.758vw, 2.8125rem);
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: var(--font-bold);
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: calc(0.75rem + 2px);
  line-height: 1.3;
  position: relative;
}

.cat-tile__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 2px;
  background-color: var(--color-red);
}

.cat-tile__desc {
  font-size: clamp(0.75rem, 0.859vw, 1.375rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease 0.25s, opacity 0.3s ease 0.25s;
  opacity: 0;
  letter-spacing: 0.15em;
}

.cat-tile:hover .cat-tile__desc {
  max-height: 12em;
  opacity: 1;
}

/* "Inne" tile – links to the remaining brands instead of one target page */
.cat-tile--others {
  cursor: default;
}

.cat-tile:focus-within .cat-tile__overlay {
  background: rgba(0,0,0,0.72);
}

.cat-tile:focus-within .cat-tile__desc {
  max-height: 12em;
  opacity: 1;
}

.cat-tile__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.cat-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  transition: color var(--transition);
}

.cat-tile__link:hover,
.cat-tile__link:focus-visible {
  color: var(--color-red);
}

/* Featured tile – same size as other tiles */
.cat-tile--featured {
  grid-row: span 1;
}

/* ==========================================================
   HISTORY
========================================================== */
.history {
  background-color: var(--color-white);
  padding: 5rem 0 0;
}

.history__svg-scroll {
  margin-top: 2.5rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.history__svg {
  display: block;
  height: 500px;
  width: auto;
  max-width: none;
  min-width: 1800px;
}

/* ==========================================================
   ECOLOGY
========================================================== */
.ecology {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.ecology__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 4rem;
  row-gap: 0;
  align-items: start;
}

.ecology__content {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 12rem;
}

.ecology__image {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  z-index: 0;
  display: flex;
  padding-top: 3rem;
}

.ecology__category {
  font-size: 0.875rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.ecology__category::before {
  content: '';
  display: block;
  width: 3px;
  height: 1em;
  background-color: var(--color-red);
  flex-shrink: 0;
}

.ecology__title {
  font-size: clamp(1.5rem, 3.633vw, 5.8125rem);
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ecology__text {
  font-size: clamp(0.875rem, 1.25vw, 2rem);
  color: var(--color-gray);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ecology__text-scroll {
  /* scroll activated via JS when text > 250 chars */
}

.ecology__more {
  margin-top: 1rem;
}

.ecology__text-scroll--active {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) #eee;
}

.ecology__text-scroll--active::-webkit-scrollbar {
  width: 4px;
}

.ecology__text-scroll--active::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 2px;
}

.ecology__text-scroll--active::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 2px;
}

.ecology__cards {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-top: -8rem;
  width: 66.667%;
}

.ecology__card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.75rem 2.25rem;
  text-align: left;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 14rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.ecology__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.ecology__card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.ecology__card-title {
  font-size: clamp(1rem, 1.328vw, 2.125rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.ecology__card-text {
  font-size: 0.8125rem;
  color: var(--color-gray);
  line-height: 1.3;
  text-align: left;
}

.ecology__image img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* ==========================================================
   KARIERA
========================================================== */
.career {
  background-color: var(--color-white);
  padding: 5rem 0;
}

.career__accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.accordion__item {
  background-color: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  text-align: left;
  cursor: pointer;
  border: none;
}

.accordion__header:hover {
  background-color: var(--color-bg-light);
}

.accordion__item--active .accordion__header {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.accordion__job {
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.accordion__divider {
  display: block;
  width: 1px;
  height: 1.25rem;
  background-color: var(--color-border);
  flex-shrink: 0;
}

.accordion__company {
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--color-gray);
  flex: 1;
}

.accordion__item--active .accordion__company {
  color: var(--color-gray);
}

.accordion__item--active .accordion__job {
  color: var(--color-dark);
}

.accordion__icon {
  font-size: 0.875rem;
  color: var(--color-red);
  margin-left: auto;
  flex-shrink: 0;
}

.accordion__item--active .accordion__icon {
  color: var(--color-red);
}

.accordion__body {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.accordion__body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.accordion__body ul li {
  margin-bottom: 0.375rem;
}

/* ==========================================================
   GALLERY CAROUSEL
========================================================== */
.gallery {
  padding: 5rem 0 0;
  background-color: var(--color-white);
}

.gallery .building-carousel-section {
  padding-top: 2rem;
}

.gallery__carousel {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.gallery__viewport {
  overflow: hidden;
  flex: 1;
}

.gallery__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item {
  flex: 0 0 25%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  color: var(--color-white);
  font-size: 1.75rem;
  transition: background var(--transition);
  opacity: 0;
  border: none;
  cursor: pointer;
}

.gallery__item:hover .gallery__zoom {
  background: rgba(227, 30, 36, 0.45);
  opacity: 1;
}

.gallery__btn {
  display: none;
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--color-white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--color-red);
}

/* ==========================================================
   MAP
========================================================== */
.map-section {
  padding: 5rem 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.map-section .container {
  margin-bottom: 2rem;
}

#map {
  width: 100%;
  height: 480px;
  z-index: 1;
  display: block;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================================
   CONTACT
========================================================== */
.contact {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.contact__form {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form__group {
  margin-bottom: 1rem;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__select,
.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__select:focus,
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
}

.form__select.error,
.form__input.error,
.form__textarea.error {
  border-color: var(--color-red);
}

.form__error {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-red);
  margin-top: 0.375rem;
  min-height: 1.2em;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form__success {
  color: #16a34a;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form__success[hidden] {
  display: none;
}

/* Contact panel */
.contact__panel {
  background-color: var(--color-red);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  display: flex;
}

.contact__panel-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  color: var(--color-white);
  width: 100%;
}

.contact__panel-icon {
  font-size: 2.5rem;
}

.contact__panel-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
}

.contact__panel-text {
  font-size: 0.9375rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ==========================================================
   CONTACT GROUPS (accordion list)
========================================================== */
.contact-groups {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.cg-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cg-item {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.cg-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.cg-item__header:hover {
  background-color: var(--color-bg-light);
}

.cg-item__name {
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cg-item__icon {
  color: var(--color-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.cg-item--active .cg-item__icon {
  transform: rotate(180deg);
}

.cg-item__body {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.cg-item__body p {
  margin-bottom: 0.375rem;
}

.cg-item__body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   FOOTER
========================================================== */
.footer {
  display: flex;
  align-items: stretch;
  min-height: 80px;
  position: relative;
}

/* footer__bottom wraps main + panel — only used on mobile */
.footer__bottom {
  display: contents;
}

.footer__main {
  width: var(--red-start, 72vw);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem 1.25rem max(var(--container-side-padding), calc((100vw - var(--container-width)) / 2 + var(--container-side-padding)));
  position: relative;
  background-color: var(--color-white);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.footer__copy span {
  color: var(--color-dark);
  font-weight: var(--font-medium);
}

.footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__copy a:hover {
  color: var(--color-red);
}

.footer__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.footer__logo img {
  height: 44px;
  width: auto;
}

.footer__panel {
  flex: 1;
  background: var(--gradient-red) fixed;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1.25rem max(var(--container-side-padding), calc((100vw - var(--container-width)) / 2 + var(--container-side-padding))) 1.25rem 2rem;
}

.footer__divider {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
}

.footer__social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer__social a {
  color: var(--color-white);
  font-size: 1.125rem;
  transition: opacity var(--transition);
}

.footer__social a:hover {
  opacity: 0.75;
}

/* ==========================================================
   BACK TO TOP
========================================================== */
.back-to-top {
  position: fixed;
  bottom: calc(2rem - 15px);
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-3px);
}

.back-to-top.on-footer {
  background-color: var(--color-white);
  color: var(--color-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top.on-footer:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-3px);
}

/* ==========================================================
   LEAFLET CUSTOM POPUP
========================================================== */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

.map-popup__cat {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 0.2rem;
}

.map-popup h3 {
  font-size: 0.9rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.map-popup p {
  font-size: 0.8125rem;
  color: var(--color-gray);
}

.map-popup__place {
  font-weight: var(--font-bold);
  margin: 0 0 0.5rem !important;
}

.map-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.map-popup__item {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.map-popup__item a {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-red);
  text-decoration: none;
}

.map-popup__item a:hover {
  text-decoration: underline;
}

/* ==========================================================
   PAGE HERO — Subpage banner
========================================================== */
.page-hero {
  background-color: var(--color-dark);
  padding: calc(var(--header-height) + 3.5rem) 0 2.5rem;
  border-bottom: 3px solid var(--color-red);
}

.page-hero__breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.page-hero__breadcrumb a {
  color: var(--color-red);
  text-decoration: none;
  transition: opacity var(--transition);
}

.page-hero__breadcrumb a:hover {
  opacity: 0.75;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 4.5rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 1rem;
  border-left: 4px solid var(--color-red);
  line-height: 1.2;
}

/* ==========================================================
   PAGE CONTENT — Subpage placeholder layout
========================================================== */
.page-content {
  padding: 4rem 0 5rem;
  min-height: 40vh;
}

.page-content__placeholder {
  color: var(--color-gray);
  font-size: 1rem;
  font-style: italic;
  padding: 2rem;
  border: 1px dashed #ddd;
  text-align: center;
  border-radius: var(--radius);
}

/* ==========================================================
   CSR PAGE
========================================================== */

/* Hero — same white/red split as main hero */
.csr-hero {
  background-image:
    linear-gradient(to right, var(--color-white) var(--red-start, 72%), transparent var(--red-start, 72%)),
    var(--gradient-red);
  background-attachment: scroll, fixed;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  height: calc(var(--header-height) + 480px);
}

.csr-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 2rem 2.5rem 65px;
  max-width: 45%;
  height: calc(var(--header-height) + 480px);
}

.csr-hero__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--font-bold);
  color: var(--color-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.csr-hero__title {
  font-size: clamp(1.75rem, 3vw, 4rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.csr-hero__text {
  font-size: 0.9375rem;
  color: var(--color-gray);
  line-height: 1.8;
}

.csr-hero__text-scroll {
  /* container — scrolling activated via JS when text > 250 chars */
}

.csr-hero__text-scroll--active {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #E31E24 #eee;
}

.csr-hero__text-scroll--active::-webkit-scrollbar {
  width: 4px;
}

.csr-hero__text-scroll--active::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 2px;
}

.csr-hero__text-scroll--active::-webkit-scrollbar-thumb {
  background: #E31E24;
  border-radius: 2px;
}

.csr-hero__photo {
  position: absolute;
  top: 1.5rem;
  bottom: 3rem;
  left: 46vw;
  right: calc(var(--container-right, 0px) + var(--container-side-padding));
  overflow: hidden;
  z-index: 2;
}

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

/* Awards / Certificates */
.awards {
  background: var(--color-white);
  padding: 4rem 0;
}

.awards__heading {
  font-size: clamp(1.125rem, 1.8vw, 2.25rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.awards__grid {
  display: block;
}

.awards__item.awards__item--single {
  border: none;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.awards__item.awards__item--single:hover {
  box-shadow: none;
}

.awards__item--single img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.awards__item {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: box-shadow var(--transition);
}

.awards__item:hover {
  box-shadow: var(--shadow);
}

.awards__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* CSR Ecology section */
.csr-ecology {
  background: var(--color-bg-light);
  padding-bottom: 4rem;
}

.csr-ecology__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.csr-ecology__carousel {
  position: relative;
}

.csr-ecology__carousel-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.csr-ecology__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-dark);
  transition: background var(--transition), color var(--transition);
  z-index: 5;
  box-shadow: var(--shadow);
}

.csr-ecology__btn:hover {
  background: var(--color-white);
  color: var(--color-red);
}

.csr-ecology__btn--prev { left: 0.75rem; }
.csr-ecology__btn--next { right: 0.75rem; }

.csr-ecology__title {
  font-size: 1.625rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.csr-ecology__text {
  font-size: 0.9375rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* Ecology gallery strip — inside container */
.csr-ecology__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
}

.csr-ecology__gallery-item {
  overflow: hidden;
  height: 200px;
}

.csr-ecology__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.csr-ecology__gallery-item img:hover {
  transform: scale(1.05);
}

.csr-ecology__gallery-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================
   O NAS PAGE
========================================================== */

/* Timeline / Historia Firmy */
.timeline {
  background: var(--color-bg-light);
  padding-top: 4rem;
}

.timeline__heading {
  font-size: clamp(1.5rem, 2.5vw, 3.5rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.timeline__image {
  width: 100%;
  overflow-x: auto;
}

.timeline__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================
   HURT PALIW PAGE
========================================================== */

/* Gallery row */
.hurt-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 3rem 0;
}

.hurt-gallery__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hurt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hurt-gallery__item:hover img {
  transform: scale(1.04);
}

/* Tabor */
.tabor {
  padding: 5rem 0;
  background: var(--color-white);
}

.tabor__title {
  font-size: clamp(2rem, 3vw, 4.5rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}

.tabor__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0 auto 2.5rem;
}

.tabor__text {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 1rem;
}

.tabor__licenses {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Płatności */
.platnosci {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.platnosci__img {
  overflow: hidden;
}

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

.platnosci__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
}

.platnosci__title {
  font-size: clamp(1.5rem, 2.5vw, 3.5rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.platnosci__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0 0 1.5rem;
}

.platnosci__text {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* Pracownicy */
.pracownicy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--color-white);
}

.pracownicy__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
}

.pracownicy__title {
  font-size: clamp(2rem, 3vw, 4.5rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.pracownicy__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0 0 1.5rem;
}

.pracownicy__desc {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.pracownicy__img {
  overflow: hidden;
}

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

/* Swimmer */
.swimmer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.swimmer__img {
  overflow: hidden;
}

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

.swimmer__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
}

.swimmer__logo {
  height: 24px;
  width: auto;
  max-width: 160px;
  display: block;
  margin-bottom: 0.5rem;
}

.swimmer__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0 0 1.5rem;
}

.swimmer__text {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Formularz */
.formularz {
  padding: 5rem 0 4rem;
  background: var(--color-white);
}

.formularz__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.formularz__header {
  text-align: center;
  width: 100%;
}

.formularz__title {
  font-size: clamp(2rem, 3vw, 4.5rem);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}

.formularz__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0 auto 0;
}

.formularz__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.formularz__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.formularz__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.formularz__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.formularz__label {
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--color-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.formularz__input,
.formularz__textarea {
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.formularz__input:focus,
.formularz__textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.08);
}

.formularz__textarea {
  min-height: 130px;
  resize: vertical;
}

.formularz__submit {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.formularz__submit .btn {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
  padding: 0.875rem 3rem;
  font-size: 0.9375rem;
}

.formularz__status {
  text-align: center;
  font-size: 0.9375rem;
  min-height: 1.5em;
  margin: 0;
}

.formularz__status--ok {
  color: #1a7f37;
}

.formularz__status--error {
  color: var(--color-red);
}

.formularz__req {
  color: var(--color-red);
}

.formularz__note {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin: 0;
}

.formularz__rodo {
  font-size: 0.75rem;
  line-height: 1.5;
}

.formularz__note a {
  color: var(--color-red);
}

/* ==========================================================
   LEGAL — polityka prywatności
========================================================== */
.legal {
  max-width: 860px;
  line-height: 1.7;
  color: var(--color-dark);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal a {
  color: var(--color-red);
  overflow-wrap: anywhere;
}

.legal__updated {
  color: var(--color-gray);
  font-size: 0.875rem;
}

.legal__todo {
  background: #fff3cd;
  padding: 0 0.25rem;
}


.formularz__input.is-invalid,
.formularz__textarea.is-invalid {
  border-color: var(--color-red);
  background: #fff7f7;
}

.formularz__error {
  font-size: 0.8125rem;
  color: var(--color-red);
  min-height: 0;
}

.formularz__error:empty {
  display: none;
}

/* ==========================================================
   KONTAKT – contact card in hero + 3-col accordion
========================================================== */
.csr-hero__photo--card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.kontakt-card {
  background: var(--color-white);
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  min-width: 300px;
  max-width: 380px;
  width: 100%;
}

.kontakt-card__title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.kontakt-card__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin-bottom: 1.5rem;
}

.kontakt-card__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.kontakt-card__item:hover {
  color: var(--color-red);
}

.kontakt-card__item i {
  color: var(--color-red);
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.kontakt__accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: start;
}

/* ==========================================================
   SERVICES GALLERY
========================================================== */
.services-gallery {
  padding: 4rem 0;
  background: var(--color-white);
}

.services-gallery__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.services-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

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

.services-gallery__item {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.services-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.services-gallery__item img:hover {
  transform: scale(1.05);
}

/* ==========================================================
   BUILDING CAROUSEL
========================================================== */
.building-carousel-section {
  padding: 4rem 0;
  background: var(--color-white);
}

/* Ekologia – galerie wg lokalizacji */
.building-carousel-section.eco-gallery {
  padding: 3rem 0;
}

.building-carousel-section.eco-gallery + .eco-gallery {
  padding-top: 0;
}

.eco-gallery__header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.eco-gallery__title {
  font-size: clamp(1.125rem, 1.5vw, 1.75rem);
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: var(--font-bold);
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.eco-gallery__divider {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  margin: 0;
}

.building-carousel {
  position: relative;
  /* arrows protrude outside — negative margin pulls track to full container width
     (never wider than the container padding, so the page doesn't scroll sideways) */
  margin: 0 calc(-1 * min(3.5rem, var(--container-side-padding)));
  padding: 0 3.5rem;
}

.building-carousel__track-wrap {
  overflow: hidden;
  cursor: zoom-in;
}

.building-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.building-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4/3;
  overflow: hidden; /* duże / pionowe zdjęcia nie rozciągają slajdu */
}

.building-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.building-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--color-red);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px 6px rgba(227, 30, 36, 0.35);
  color: var(--color-white);
  font-size: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.building-carousel__arrow:hover {
  box-shadow: 0 0 28px 10px rgba(227, 30, 36, 0.55);
  transform: translateY(-50%) scale(1.08);
}

.building-carousel__arrow--prev { left: 2rem; }
.building-carousel__arrow--next { right: 2rem; }

/* Always hide dots */
.building-carousel__dots {
  display: none;
}

/* Tablet: 2 slides at once */
@media (min-width: 600px) and (max-width: 1023px) {
  .building-carousel__slide {
    flex: 0 0 50%;
    min-width: 0;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
}

/* Desktop: show 4 slides at once as a scrollable carousel */
@media (min-width: 1024px) {
  .building-carousel__track-wrap {
    cursor: default;
  }

  .building-carousel__slide {
    flex: 0 0 25%;
    min-width: 0;
    aspect-ratio: 4/3;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .building-carousel__slide img {
    cursor: zoom-in;
  }
}

/* ==========================================================
   BUILDING LIGHTBOX
========================================================== */
.building-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.building-lightbox[hidden] { display: none; }

.building-lightbox.is-open { display: flex; }

.building-lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
}

.building-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  display: block;
}

.building-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0.25rem;
}

.building-lightbox__close:hover { opacity: 1; }

.building-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.building-lightbox__arrow:hover { background: var(--color-red); }
.building-lightbox__arrow--prev { left: 1.5rem; }
.building-lightbox__arrow--next { right: 1.5rem; }

.building-lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  color: rgba(255,255,255,0.55);
  font-family: sans-serif;
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================
   ANIMATIONS (prefers-reduced-motion)
========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
