:root {
  --bg: #F7F4EF;
  --bg-alt: rgba(212, 200, 138, 0.05);
  --surface: #FFFFFF;
  --surface-muted: #F7F4EF;
  --navy: #111111;
  --navy-deep: #0a0a0a;
  --text: #151515;
  --text-soft: #66605A;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #a78449;
  --accent-deep: #B89252;
  --accent-soft: rgba(198, 164, 106, 0.16);
  --accent-glow: rgba(198, 164, 106, 0.12);
  --border-gold: rgba(198, 164, 106, 0.28);
  --shadow-sm: 0 10px 30px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 18px 50px rgba(17, 17, 17, 0.08);
  --glow-gold: 0 0 0 1px rgba(198, 164, 106, 0.10), 0 8px 30px rgba(198, 164, 106, 0.10);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1280px;
  --section-space: clamp(72px, 10vw, 132px);
  --transition: 680ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 900ms cubic-bezier(0.22, 1, 0.36, 1);
  --hero-parallax: 0px;
  --header-height-desktop: 96px;
  --header-logo-height-desktop: 64px;
  --header-container: 1720px;
  --header-height-mobile: 68px;
  --header-logo-height-mobile: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

@media (min-width: 1024px) {
  :root {
    --section-space: clamp(56px, 6vw, 96px);
  }
}

html {
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background: #ffffff;
  font-family: Manrope, sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
.hero__brand,
.stat-card__value {
  line-height: 1.05;
  letter-spacing: -0.04em;
}

p {
  color: var(--text-soft);
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.site-shell {
  min-height: 100vh;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 6px 0;
  height: var(--header-height-desktop);
  opacity: 1;
  transform: translateY(0);
  transition:
    transform var(--transition),
    opacity var(--transition),
    background-color var(--transition),
    backdrop-filter var(--transition),
    box-shadow var(--transition);
}

.theme-home .header {
  opacity: 0;
  transform: translateY(-120%);
}

.theme-home .header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header.header--glass {
  backdrop-filter: blur(14px) saturate(165%);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
}

.header.header--solid {
  background: rgba(24, 24, 23, 0.89);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.header.is-visible,
.header.header--glass,
.header.header--solid {
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08), 0 12px 30px rgba(17, 17, 17, 0.06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.header .container {
  width: min(var(--header-container), calc(100% - clamp(32px, 6vw, 96px)));
}

.header__brand-logos {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}


@media (min-width: 1024px) {
  .header__brand-logos {
    margin-left: 100px;
  }
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__logo {
  height: 40px;
  width: auto;
  display: block;
  margin-left: -10px;
}

.header__brand-mark {
  height: var(--header-logo-height-desktop);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* First logo (logo.webp) — golden glow filter */
.header__brand-mark--logo {
  height: var(--header-logo-height-desktop);
  width: auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 215, 120, 0.45)) drop-shadow(0 0 26px rgba(198, 164, 106, 0.38)) drop-shadow(0 0 46px rgba(198, 164, 106, 0.22));
  transition: filter 0.3s ease;
}

/* Second logo (HELENIA-LOGO.png) — proportional sizing with golden glow */
.header__brand-mark--text {
  height: var(--header-logo-height-desktop);
  width: auto;
  max-width: 160px;
  filter:
    drop-shadow(0 0 10px rgba(255, 215, 120, 0.45)) drop-shadow(0 0 26px rgba(198, 164, 106, 0.38)) drop-shadow(0 0 46px rgba(198, 164, 106, 0.22));
  transition: filter 0.3s ease;
}

/* Mobile adjustments for logos */
@media (max-width: 900px) {

  .header__brand-mark--logo,
  .header__brand-mark--text {
    height: var(--header-logo-height-mobile);
  }

  .header__brand-mark--text {
    max-width: 140px;
    margin-left: 2px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 36px);
  flex-wrap: nowrap;
  color: var(--navy);
  font-size: 0.92rem;
}

@media (min-width: 1024px) {
  .header__inner {
    display: grid;
    grid-template-columns: minmax(270px, 1fr) minmax(0, auto) minmax(90px, 1fr);
    column-gap: clamp(28px, 4vw, 72px);
  }

  .header .header__actions {
    display: contents;
  }

  .header__nav {
    grid-column: 2;
    justify-self: center;
    position: static;
    width: auto;
    transform: none;
  }

  .language-switcher {
    grid-column: 3;
    justify-self: end;
  }
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .header .container {
    width: calc(100% - 32px);
  }

  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(16px, 2vw, 30px);
  }

  .header__nav {
    justify-content: center;
    gap: clamp(12px, 1.4vw, 22px);
  }

  .header .header__nav a {
    font-size: clamp(15px, 1.45vw, 21px);
  }
}

.header__nav a {
  transition: color var(--transition);
  transition: --border-gold;
  color: rgba(251, 246, 235, 0.965);
  font-size: clamp(18px, 1.75vw, 26px);
  font-family: -apple-system-ui;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__nav a:hover {
  color: var(--accent);
}

.header__toggle {
  display: none;
}

@media (max-width: 768px) {
  .header {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding-block: 6px;
    height: var(--header-height-mobile);
    background: rgba(24, 24, 23, 0.78);
    backdrop-filter: blur(12px) saturate(165%);
    -webkit-backdrop-filter: blur(12px) saturate(165%);
  }

  .header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    position: relative;
    z-index: 2;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(24, 24, 23, 0.35);
    color: #fff;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
  }

  .header__toggle-lines {
    position: relative;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
  }

  .header__toggle-lines::before,
  .header__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
  }

  .header__toggle-lines::before {
    top: -7px;
  }

  .header__toggle-lines::after {
    top: 7px;
  }

  body.nav-open .header__toggle-lines {
    background: transparent;
  }

  body.nav-open .header__toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .header__toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header__nav {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    left: 16px;
    right: 16px;
    padding: 14px 14px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    background: rgba(24, 24, 23, 0.92);
    backdrop-filter: blur(12px) saturate(165%);
    -webkit-backdrop-filter: blur(12px) saturate(165%);
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.22);
  }

  body.nav-open .header__nav {
    display: flex;
  }

  .header__nav a {
    font-size: 18px;
    padding: 12px 10px;
    border-radius: 12px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
  }

  .header__nav a:hover {
    background: rgba(198, 164, 106, 0.10);
    color: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 720px) {
  .header {
    padding-block: 6px;
  }

  .header__toggle {
    display: inline-flex;
    width: 37px;
    height: 37px;
  }

  .header__brand-mark {
    display: block;
    height: var(--header-logo-height-mobile);
    width: auto;
  }

  .header__brand {
    gap: 4px;
  }
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* === USUNIĘTE (przeniesione do home.css):
   .section, .section--light, .section--alt, .section--dark, .section--cta,
   .section-copy, .section-copy--light
   Powód: używane wyłącznie w home.html; trzymanie ich tu wymuszało walkę
   specyficzności w home.css ("Specificity match: base rules use 3 classes").
   === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--small {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 0.88rem;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: rgba(198, 164, 106, 0.5);
  background: rgba(198, 164, 106, 0.08);
  color: #fff;
}

.btn--light {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 208, 112, 0.24);
  background:
    linear-gradient(135deg,
      #ead98f 0%,
      #c6a046 38%,
      #9a6e22 66%,
      #d4b55c 100%);
  background-size: 200% 100%;
  background-position: left center;
  color: rgba(0, 0, 0, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 235, 0.34) inset,
    0 14px 34px rgba(198, 164, 106, 0.20),
    0 8px 20px rgba(0, 0, 0, 0.36);
}

.btn--light:hover {
  background-position: right center;
  border-color: rgba(255, 232, 150, 0.52);
  color: rgba(0, 0, 0, 0.86);
  box-shadow:
    0 1px 0 rgba(255, 255, 235, 0.38) inset,
    0 18px 42px rgba(198, 164, 106, 0.28),
    0 0 0 1px rgba(255, 232, 150, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.38);
}

.btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg,
      rgba(255, 255, 245, 0.22) 0%,
      rgba(255, 255, 245, 0.06) 44%,
      transparent 100%);
}

.btn--light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg,
      transparent 24%,
      rgba(255, 236, 170, 0.18) 50%,
      transparent 76%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.btn--light:hover::after {
  transform: translateX(120%);
}

.btn--light:active {
  background-position: right center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.30) inset,
    0 9px 24px rgba(198, 164, 106, 0.20);
}

.btn--light:focus-visible {
  outline: none;
  border-color: rgba(255, 232, 150, 0.58);
  box-shadow:
    0 0 0 3px rgba(198, 164, 106, 0.24),
    0 16px 38px rgba(198, 164, 106, 0.24),
    0 1px 0 rgba(255, 255, 235, 0.34) inset;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.card--soft {
  background: rgba(255, 255, 255, 0.88);
}

.card--dark {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.card--dark:hover {
  border-color: var(--border-gold);
  box-shadow: var(--glow-gold);
}

.media-tile {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(243, 238, 231, 0.92));
  color: rgba(17, 17, 17, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
}

.media-tile--large {
  min-height: 340px;
}

.media-tile--stacked {
  min-height: 240px;
}

details.card {
  padding: 22px 24px;
}

details.card summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

details.card p {
  margin-top: 12px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.language-switcher {
  position: relative;
  z-index: 3;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(24, 24, 23, 0.42);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus-visible,
.language-switcher.is-open .language-switcher__toggle {
  background: rgba(24, 24, 23, 0.62);
  border-color: rgba(198, 164, 106, 0.4);
  color: rgba(255, 255, 255, 0.98);
}

.language-switcher__toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(198, 164, 106, 0.18),
    0 12px 30px rgba(17, 17, 17, 0.12);
}

.language-switcher__code {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.language-switcher__caret {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.language-switcher.is-open .language-switcher__caret {
  transform: rotate(-135deg) translateY(-1px);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  background: rgba(24, 24, 23, 0.96);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.22);
}

.language-switcher.is-open .language-switcher__menu {
  display: flex;
}

.language-switcher__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.language-switcher__item:hover,
.language-switcher__item:focus-visible,
.language-switcher__item.is-active {
  background: rgba(198, 164, 106, 0.12);
  color: rgba(255, 255, 255, 0.98);
}

.language-switcher__item-code {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .header__actions {
    gap: 10px;
  }

  .language-switcher__toggle {
    min-width: 58px;
    min-height: 37px;
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .language-switcher__menu {
    right: 0;
    min-width: 170px;
  }
}