:root {
  /* Wariant B: Las premium - głęboka zieleń + terakota + ciepłe światło */
  --bg: #0d1410;
  --bg-2: #142019;
  --bg-3: #1c2a22;
  --ink: #f4ede0;
  --ink-2: #b8b0a0;
  --ink-3: #7a7565;
  --terra: #c97d4a;
  --terra-2: #e09466;
  --terra-3: #d4a380;
  --moss: #6b8e4e;
  --moss-2: #88a866;
  --copper: #b8733e;
  --leaf: #4a6b3a;
  --line: rgba(201, 125, 74, 0.25);
  --line-2: rgba(244, 237, 224, 0.08);
  --line-3: rgba(136, 168, 102, 0.2);
  --shadow: 0 30px 80px rgba(0, 15, 8, 0.6);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(13, 20, 16, 0.97), rgba(13, 20, 16, 0.85) 70%, rgba(13, 20, 16, 0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  line-height: 1;
}

.logo .logo-mark-img {
  width: 50px;
  height: 55px;
  display: block;
  flex-shrink: 0;
}

.logo .logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
}

.logo .logo-main {
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo .logo-sub {
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--terra-3);
  margin-top: 4px;
  font-family: var(--sans);
  font-weight: 500;
}

/* Wersja w footerze - większa ikona */
.footer-logo-block .logo-mark-img-footer {
  width: 52px;
  height: 60px;
  display: block;
  flex-shrink: 0;
}
.footer-logo-block {
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover { color: var(--terra-3); }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--terra);
  color: var(--terra-3);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--terra);
  color: #ffffff;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(107, 142, 78, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 125, 74, 0.15), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(228, 238, 216, 0.6), transparent 60%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 58, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 58, 40, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.6;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  flex: 1;
  margin-bottom: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra-3);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--terra);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1.2s 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra-3);
  font-weight: 400;
}

.hero h1 .line-break { display: block; }

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 1.2s 0.6s forwards;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--terra);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terra-3);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--terra);
  color: var(--terra-3);
}

/* Hero visual - geometric pot illustration */
.hero-visual {
  position: relative;
  height: 520px;
  opacity: 0;
  animation: fadeIn 1.5s 0.6s forwards;
}

.pot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line-2);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1.2s 1s forwards;
}

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--terra-3);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ PHILOSOPHY ============ */
section { padding: 140px 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 30px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--terra);
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 900px;
}

.section-title em {
  font-style: italic;
  color: var(--terra-3);
}

.philosophy {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.philosophy-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.philosophy-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 72px;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--terra-3);
  font-weight: 400;
}

.principles {
  display: grid;
  gap: 2px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.principle {
  background: var(--bg);
  padding: 32px;
  transition: background 0.3s;
  border: 1px solid var(--line-2);
}

.principle:hover { background: var(--bg-2); }

.principle-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--terra);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.principle h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
}

.principle p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ KOLEKCJA SYSTEMU ============ */
.kolekcja-system {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  position: relative;
}

.kolekcja-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.kolekcja-intro p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 520px;
}

.kolekcja-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.kolekcja-card {
  background: var(--bg);
  padding: 36px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 380px;
  overflow: hidden;
}

.kolekcja-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--terra);
  transition: width 0.45s;
}

.kolekcja-card:hover {
  background: var(--bg-3);
  transform: translateY(-4px);
}

.kolekcja-card:hover::before { width: 100%; }

.kolekcja-card--featured {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  outline: 1px solid var(--line-2);
}

.kolekcja-card--featured::before { width: 100%; background: var(--terra-2); }

.kolekcja-card--wide { grid-column: span 2; }
.kolekcja-card--wide .kolekcja-visual svg { width: 70%; }

.kolekcja-tag {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
  font-weight: 500;
}

.kolekcja-card--featured .kolekcja-tag { color: var(--terra-2); }

.kolekcja-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}

.kolekcja-visual svg {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
  transition: transform 0.5s;
}

.kolekcja-card:hover .kolekcja-visual svg {
  transform: translateY(-6px);
}

.kolekcja-info h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.kolekcja-info p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.kolekcja-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.kolekcja-price strong {
  font-style: normal;
  font-weight: 500;
  color: var(--terra-2);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.kolekcja-cta-box {
  margin-top: 60px;
  padding: 50px 60px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.kolekcja-cta-box h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: var(--terra-2);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.kolekcja-cta-box p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
}

.kolekcja-cta-box .btn {
  justify-self: end;
}

@media (max-width: 1100px) {
  .kolekcja-grid { grid-template-columns: repeat(2, 1fr); }
  .kolekcja-card--wide { grid-column: span 2; }
  .kolekcja-intro { grid-template-columns: 1fr; gap: 40px; }
  .kolekcja-cta-box { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
  .kolekcja-cta-box .btn { justify-self: start; }
}

@media (max-width: 700px) {
  .kolekcja-grid { grid-template-columns: 1fr; }
  .kolekcja-card--wide { grid-column: span 1; }
}

/* ============ COLLECTIONS ============ */
.collections {
  position: relative;
}

.collections-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.collections-intro p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 480px;
}

.shapes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.shape-card {
  background: var(--bg);
  padding: 50px 40px;
  position: relative;
  transition: all 0.4s;
  cursor: pointer;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
}

.shape-card:hover {
  background: var(--bg-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 58, 40, 0.08);
}

.shape-visual {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.shape-visual svg {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.5s;
}

.shape-card:hover .shape-visual svg {
  transform: translateY(-8px) rotate(2deg);
}

.shape-num {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--terra);
}

.shape-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--ink);
}

.shape-subtitle {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}

.shape-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.shape-specs {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

/* ============ CALCULATOR / CONFIGURATOR ============ */
.configurator {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line-2);
  position: relative;
}

.configurator::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 147, 90, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(184, 147, 90, 0.05), transparent 50%);
  pointer-events: none;
}

.config-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.config-header .section-label {
  justify-content: center;
}

.config-header .section-label::before {
  display: none;
}

.config-header h2 {
  text-align: center;
  margin: 0 auto 24px;
}

.config-header p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.config-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.config-options {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 50px;
}

.option-group {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-2);
}

.option-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.option-label h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}

.option-label span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--sans);
  font-weight: 400;
}

.pill:hover {
  border-color: var(--terra);
  color: var(--ink);
}

.pill.active {
  background: var(--terra);
  border-color: var(--terra);
  color: #ffffff;
  font-weight: 500;
}

.size-slider {
  position: relative;
  padding: 10px 0 30px;
}

.size-track {
  height: 2px;
  background: var(--line);
  position: relative;
  border-radius: 0;
}

.size-fill {
  position: absolute;
  height: 100%;
  background: var(--terra);
  transition: width 0.3s;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  position: absolute;
  top: 4px;
  left: 0;
  height: 14px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--terra-2);
  border-radius: 50%;
  border: 3px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(184, 147, 90, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--terra-2);
  border-radius: 50%;
  border: 3px solid var(--bg);
  cursor: pointer;
}

.size-display {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.size-value {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--terra-3);
  letter-spacing: 0;
  text-transform: none;
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.swatch:hover { transform: scale(1.1); }

.swatch.active {
  border-color: var(--terra-3);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--terra-2);
}

.swatch-label {
  text-align: center;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 14px;
  letter-spacing: 0.1em;
}

/* Config Summary / Preview */
.config-preview {
  position: sticky;
  top: 100px;
  align-self: start;
}

.preview-visual {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  padding: 60px 40px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.preview-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(74, 144, 88, 0.15), transparent 70%);
}

#preview-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.preview-summary {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 36px;
}

.summary-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.summary-row .label {
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.summary-row .value {
  color: var(--ink);
  font-weight: 500;
}

.price-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-row .label {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.price-value {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--terra-3);
  line-height: 1;
}

.price-note {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  font-style: italic;
}

.config-cta {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

/* ============ GALLERY ============ */
.gallery {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}

.gallery-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: end;
}

.gallery-header p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 480px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #1a1a18;
  cursor: pointer;
  transition: all 0.4s;
  break-inside: avoid;
  margin-bottom: 4px;
  display: block;
}

/* Masonry (column-count) nie obsługuje rozciągania na kolumny/wiersze — klasy .wide/.tall
   pozostają w HTML nieszkodliwie, ale nie mają tu efektu wizualnego. */

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  z-index: 3;
  color: #fafcf8;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #fafcf8;
  letter-spacing: -0.01em;
}

.gallery-overlay p {
  font-size: 14px;
  color: rgba(13, 20, 16, 0.85);
  line-height: 1.6;
  max-width: 95%;
}

.gallery-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(74, 144, 88, 0.3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra-3);
  z-index: 4;
}

/* ============ LIGHTING ============ */
.lighting {
  padding: 140px 0;
}

.lighting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.lighting-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.lighting-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 860px;
}

.light-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.light-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--terra-3);
  font-weight: 400;
}

.light-card--wifi {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  border-color: var(--line);
}

.light-card {
  padding: 50px 40px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.light-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--terra);
  transition: width 0.5s;
}

.light-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.light-card:hover::before { width: 100%; }

.light-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--ink);
}

.light-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.light-features {
  list-style: none;
  font-size: 13px;
  color: var(--ink-3);
}

.light-features li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--line-2);
}

.light-features li:last-child { border-bottom: none; }

.light-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terra);
}

.light-card--neutral { background: var(--bg-3); }
.light-card--neutral h3 { color: var(--ink-2); }
.light-card--neutral .light-features li::before { color: var(--ink-3); }

/* ============ POWER ============ */
.power {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-2);
  margin-top: 80px;
  border: 1px solid var(--line-2);
}

.power-option {
  background: var(--bg);
  padding: 50px 40px;
  position: relative;
}

.power-number {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: var(--terra-3);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 20px;
}

.power-option h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
}

.power-option .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(184, 147, 90, 0.1);
  color: var(--terra-3);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.power-option p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ============ PROCESS ============ */
.process-timeline {
  margin-top: 80px;
  position: relative;
}

.process-line {
  position: absolute;
  left: 40px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 60px;
  padding: 40px 0;
  align-items: start;
  position: relative;
}

.process-num {
  width: 80px;
  height: 80px;
  border: 1px solid var(--terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--terra-3);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.process-content h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
}

.process-content p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  padding: 140px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}

.contact-item .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}

.contact-item .value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
}

.contact-item .value a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item .value a:hover { color: var(--terra-3); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 50px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--terra);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
}

/* ============ FOOTER ============ */
footer {
  background: #050908;
  color: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

footer .logo { color: var(--ink); }
footer .logo .logo-main { color: var(--ink); }
footer .logo .logo-sub { color: var(--terra-2); }
footer .footer-brand p { color: rgba(184, 176, 160, 0.7); }
footer .footer-col h5 { color: var(--terra); }
footer .footer-col a { color: rgba(184, 176, 160, 0.7); }
footer .footer-col a:hover { color: var(--terra-2); }
footer .footer-top { border-bottom-color: rgba(255,255,255,0.08); }
footer .footer-bottom { color: rgba(184, 176, 160, 0.5); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-2);
}

.footer-brand p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 360px;
}

.footer-col h5 {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--terra);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--terra-3); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.footer-author {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  opacity: 0.7;
  letter-spacing: 0.08em;
  font-style: italic;
}
.footer-author a {
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-style: normal;
  transition: all 0.2s;
}
.footer-author a:hover {
  color: var(--terra-2);
  border-color: var(--terra-2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-content,
  .philosophy-grid,
  .collections-intro,
  .gallery-header,
  .config-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual { height: 400px; }
  .shapes-grid,
  .power-grid { grid-template-columns: 1fr; }
  .lighting-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    column-count: 2;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
  .config-preview { position: static; }
}

@media (max-width: 700px) {
  .container { padding: 0 24px; }
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .logo { font-size: 20px; }
  section { padding: 80px 0; }
  .color-swatches { grid-template-columns: repeat(4, 1fr); }
  .lighting-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
  .process-step { grid-template-columns: 60px 1fr; gap: 30px; }
  .process-num { width: 60px; height: 60px; font-size: 22px; }
  .process-line { left: 30px; }
  .contact-form, .config-options { padding: 30px; }
}

/* ============ WIZUALIZACJE — kadr dopasowany do orientacji + responsywność ============ */
/* 3 piony w rzędzie + poziomy baner "premium" pod spodem. Scope: tylko #wizualizacje */
#wizualizacje .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
}
#wizualizacje .gallery-item { aspect-ratio: 3 / 4; }
#wizualizacje .gallery-item.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
/* kadrowanie per-obraz (object-position dobrane tak, by drzewo było w całości) */
#wizualizacje .gallery-item img { object-position: center 45%; }
#wizualizacje .gallery-item:nth-child(1) img { object-position: center 42%; } /* bonsai nocą */
#wizualizacje .gallery-item:nth-child(2) img { object-position: center 50%; } /* klon */
#wizualizacje .gallery-item:nth-child(3) img { object-position: center 45%; } /* bonsai dzień */
#wizualizacje .gallery-item.wide img      { object-position: center 34%; } /* premium */

/* tablet: utrzymujemy 3 kolumny (piony znoszą węższy kadr), baner pełna szerokość */
@media (max-width: 1100px) {
  #wizualizacje .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  #wizualizacje .gallery-item.wide { grid-column: 1 / -1; }
}
/* telefon: jedna kolumna, każdy kadr w pełnym rozmiarze */
@media (max-width: 760px) {
  #wizualizacje .gallery-grid { grid-template-columns: 1fr; }
  #wizualizacje .gallery-item { aspect-ratio: 4 / 5; grid-column: 1 / -1; }
  #wizualizacje .gallery-item.wide { aspect-ratio: 3 / 2; grid-column: 1 / -1; }
}

/* ============ POPRAWKI: widoczność statystyk + klikalne logo ============ */
/* statystyki hero — wcześniej zbyt ciemne na tle, teraz czytelne */
.stat-num   { color: var(--terra-2); text-shadow: 0 1px 16px rgba(0,0,0,.55); }
.stat-label { color: var(--ink-2);   text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* logo jest teraz linkiem do strony głównej */
a.logo { text-decoration: none; cursor: pointer; }
a.logo:hover { opacity: .85; transition: opacity .25s; }
a.logo .logo-main, a.logo .logo-sub { text-decoration: none; }

/* ============ PRZEŁĄCZNIK JĘZYKA — flagi + czytelny stan aktywny ============ */
.lang-switcher { display:flex; gap:6px; align-items:center; }
.lang-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:1px solid transparent; border-radius:5px;
  color:var(--ink-2); font-family:var(--sans); font-size:11px; font-weight:600;
  letter-spacing:0.08em; padding:5px 8px; cursor:pointer; transition:all .2s; opacity:.6;
}
.lang-btn::before {
  content:''; width:19px; height:13px; border-radius:2px; flex-shrink:0;
  background-size:cover; background-position:center;
  box-shadow:0 0 0 1px rgba(255,255,255,.14);
}
.lang-btn:hover { opacity:1; color:var(--ink); background:rgba(244,237,224,.06); }
.lang-btn.active { opacity:1; color:var(--ink); background:rgba(201,125,74,.18); border-color:var(--terra); }
.lang-btn[data-lang="pl"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%2710%27%20width%3D%2730%27%20height%3D%2710%27%20fill%3D%27%23dc143c%27%2F%3E%3C%2Fsvg%3E"); }
.lang-btn[data-lang="en"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23012169%27%2F%3E%3Cpath%20d%3D%27M0%200L30%2020M30%200L0%2020%27%20stroke%3D%27%23fff%27%20stroke-width%3D%273%27%2F%3E%3Cpath%20d%3D%27M0%200L30%2020M30%200L0%2020%27%20stroke%3D%27%23c8102e%27%20stroke-width%3D%271.5%27%2F%3E%3Crect%20x%3D%2712%27%20width%3D%276%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%277%27%20width%3D%2730%27%20height%3D%276%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20x%3D%2713%27%20width%3D%274%27%20height%3D%2720%27%20fill%3D%27%23c8102e%27%2F%3E%3Crect%20y%3D%278%27%20width%3D%2730%27%20height%3D%274%27%20fill%3D%27%23c8102e%27%2F%3E%3C%2Fsvg%3E"); }
.lang-btn[data-lang="de"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23000%27%2F%3E%3Crect%20y%3D%276.67%27%20width%3D%2730%27%20height%3D%276.67%27%20fill%3D%27%23dd0000%27%2F%3E%3Crect%20y%3D%2713.34%27%20width%3D%2730%27%20height%3D%276.66%27%20fill%3D%27%23ffce00%27%2F%3E%3C%2Fsvg%3E"); }
.lang-btn[data-lang="cs"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2710%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%2710%27%20width%3D%2730%27%20height%3D%2710%27%20fill%3D%27%23d7141a%27%2F%3E%3Cpath%20d%3D%27M0%200L15%2010L0%2020Z%27%20fill%3D%27%2311457e%27%2F%3E%3C%2Fsvg%3E"); }
.lang-btn[data-lang="sk"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%276.67%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%276.67%27%20width%3D%2730%27%20height%3D%276.67%27%20fill%3D%27%230b4ea2%27%2F%3E%3Crect%20y%3D%2713.34%27%20width%3D%2730%27%20height%3D%276.66%27%20fill%3D%27%23ee1620%27%2F%3E%3Cpath%20d%3D%27M5%204h6v8c0%202-3%203-3%203s-3-1-3-3z%27%20fill%3D%27%23fff%27%20stroke%3D%27%23ee1620%27%20stroke-width%3D%270.6%27%2F%3E%3Crect%20x%3D%277.4%27%20y%3D%275%27%20width%3D%271.2%27%20height%3D%278%27%20fill%3D%27%23ee1620%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%277%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23ee1620%27%2F%3E%3Crect%20x%3D%276.4%27%20y%3D%279.2%27%20width%3D%273.2%27%20height%3D%271%27%20fill%3D%27%23ee1620%27%2F%3E%3C%2Fsvg%3E"); }
.lang-btn[data-lang="uk"]::before { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2710%27%20fill%3D%27%230057b7%27%2F%3E%3Crect%20y%3D%2710%27%20width%3D%2730%27%20height%3D%2710%27%20fill%3D%27%23ffd700%27%2F%3E%3C%2Fsvg%3E"); }

/* ============ LIGHTBOX — klik w zdjęcie otwiera pełny rozmiar ============ */
.gallery-item img.zoomable, #wizualizacje img.zoomable { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,12,9,.95);
  display: none; align-items: center; justify-content: center;
  padding: 4vmin; cursor: zoom-out;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox-overlay.open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 94vw; max-height: 92vh; object-fit: contain;
  border-radius: 3px; box-shadow: 0 30px 90px rgba(0,0,0,.7); cursor: default;
}
.lightbox-close {
  position: fixed; top: 20px; right: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(244,237,224,.1); border: 1px solid var(--line-2);
  color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ============ KARTY KOLEKCJI Z RENDERAMI + TEASER REALIZACJI ============ */
.kolekcja-visual img { width:100%; height:250px; object-fit:contain; object-position:center; border-radius:6px; display:block; margin:0; background:rgba(255,255,255,.025); }
.kolekcja-card--wide .kolekcja-visual { width:100%; }
.kolekcja-card--wide .kolekcja-visual img { height:320px; }
.realizacje-teaser { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.realizacje-teaser a { display:block; overflow:hidden; border-radius:8px; border:1px solid var(--line-2); }
.realizacje-teaser img { width:100%; height:300px; object-fit:cover; display:block; transition:transform .5s ease; }
.realizacje-teaser a:hover img { transform:scale(1.05); }
@media (max-width:760px){ .realizacje-teaser { grid-template-columns:1fr; } }

/* ============ NAGŁÓWEK — RESPONSYWNOŚĆ MOBILNA (fix) ============ */
@media (max-width: 760px) {
  nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 12px;
  }
  .logo { gap: 11px; flex: 1 1 auto; min-width: 0; }
  .logo .logo-mark-img { width: 40px; height: 44px; }
  .logo .logo-main { font-size: 21px; }
  .logo .logo-sub { font-size: 8px; letter-spacing: 0.22em; white-space: nowrap; margin-top: 3px; }

  /* przełącznik języka: tylko flagi (bez tekstu), kompaktowo */
  .lang-switcher { gap: 5px; flex: 0 0 auto; }
  .lang-btn { padding: 5px 5px; font-size: 0; gap: 0; letter-spacing: 0; border-radius: 4px; }
  .lang-btn::before { width: 23px; height: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }

  /* menu: pokaż 3 linki w pełnym rzędzie pod logo/flagami */
  .nav-links {
    display: flex !important;
    order: 3;
    width: 100%;
    gap: 30px;
    justify-content: center;
    padding-top: 11px;
    margin-top: 2px;
    border-top: 1px solid var(--line-2);
  }
  .nav-links a { font-size: 12.5px; letter-spacing: 0.16em; }

  /* zapas pod wyższym, zawijanym navem */
  .hero { padding-top: 165px; }
  .subpage-hero { padding-top: 150px; }
}

@media (max-width: 400px) {
  .logo .logo-main { font-size: 18px; }
  .logo .logo-sub { display: none; }
  .logo .logo-mark-img { width: 36px; height: 40px; }
  .lang-switcher { gap: 4px; }
  .lang-btn { padding: 4px 4px; }
  .lang-btn::before { width: 20px; height: 13px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11.5px; letter-spacing: 0.1em; }
}

/* hero: prawdziwy render zamiast ilustracji */
.hero-visual img{width:100%;height:100%;object-fit:cover;border-radius:14px;box-shadow:var(--shadow);display:block}

/* ============ GALERIA: filtry + lightbox z nawigacja (generowane przez tools/build_gallery.py) ============ */
.gallery-filters { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 40px; }
.gallery-filter {
  font-family:var(--sans); font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  padding:11px 20px; background:transparent; color:var(--ink-2);
  border:1px solid var(--line-2); border-radius:999px; cursor:pointer; transition:all .25s;
}
.gallery-filter span { opacity:.55; margin-left:6px; font-weight:400; }
.gallery-filter:hover { color:var(--ink); border-color:var(--terra); }
.gallery-filter.active { background:var(--terra); border-color:var(--terra); color:#fff; }
.gallery-filter:focus-visible { outline:2px solid var(--terra-2, var(--terra)); outline-offset:2px; }
.gallery-grid .gallery-item[hidden] { display:none; }
.gallery-grid .gallery-item.is-entering { animation:lbFade .35s ease; }
.gallery-item img { background:#1a1a18; }
@media (max-width:700px) {
  .gallery-filters { flex-wrap:nowrap; overflow-x:auto; margin-inline:-24px; padding:0 24px 8px; scrollbar-width:none; }
  .gallery-filters::-webkit-scrollbar { display:none; }
  .gallery-filter { white-space:nowrap; flex:0 0 auto; padding:10px 16px; }
}

.lightbox-overlay { flex-direction:column; touch-action:pan-y; }
.lightbox-overlay img { transition:opacity .2s; }
.lightbox-overlay img.is-loading { opacity:.25; }
.lightbox-nav {
  position:fixed; top:50%; transform:translateY(-50%);
  width:52px; height:52px; border-radius:50%;
  background:rgba(244,237,224,.1); border:1px solid var(--line-2);
  color:var(--ink); font-size:26px; line-height:1; cursor:pointer; transition:all .2s;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.lightbox-nav:hover { background:var(--terra); border-color:var(--terra); color:#fff; }
.lightbox-prev { left:24px; }
.lightbox-next { right:24px; }
.lightbox-meta {
  position:fixed; left:0; right:0; bottom:18px; text-align:center; pointer-events:none;
  color:var(--ink-2); font-family:var(--sans); font-size:13px; letter-spacing:.08em; padding:0 80px;
}
.lightbox-meta b { color:var(--ink); font-weight:500; margin-right:12px; }
.lightbox-overlay.single .lightbox-nav, .lightbox-overlay.single .lightbox-count { display:none; }
@media (max-width:700px) {
  .lightbox-nav { width:44px; height:44px; top:auto; bottom:62px; transform:none; }
  .lightbox-prev { left:16px; } .lightbox-next { right:16px; }
  .lightbox-meta { bottom:20px; padding:0 70px; font-size:12px; }
  .lightbox-overlay img { max-height:78vh; }
}
.lightbox-overlay img { max-height:calc(100vh - 110px); }

/* ============ PORADY / ARTYKUŁY (generowane przez tools/build_porady.py) ============ */
.article-wrap { background: var(--bg-2); padding: 90px 0 110px; border-top: 1px solid var(--line-2); }
.article { max-width: 760px; margin: 0 auto; }
.article-meta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 36px; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--ink); margin: 56px 0 18px; }
.article h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--terra-2); margin: 34px 0 10px; }
.article p { font-size: 17px; line-height: 1.85; color: var(--ink-2); margin-bottom: 20px; }
.article ul, .article ol { margin: 0 0 24px 22px; color: var(--ink-2); font-size: 17px; line-height: 1.8; }
.article li { margin-bottom: 8px; }
.article a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--terra-2); }
.article strong { color: var(--ink); font-weight: 500; }
.article figure { margin: 38px 0; }
.article figure img { width: 100%; height: auto; border-radius: 3px; display: block; }
.article figcaption { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); margin-top: 10px; }
.article .callout { border-left: 3px solid var(--terra); background: rgba(201,125,74,.08); padding: 22px 26px; margin: 34px 0; }
.article .callout p:last-child { margin-bottom: 0; }
.article .callout strong.t { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; font-weight: 500; }
.article table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); line-height: 1.55; }
.article th { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); }
.article td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.article-cta { margin-top: 64px; padding: 44px 40px; background: var(--bg); border: 1px solid var(--line-2); text-align: center; }
.article-cta h2 { margin-top: 0; font-style: italic; font-weight: 300; }
.article-cta p { max-width: 520px; margin-left: auto; margin-right: auto; }
.related { margin-top: 70px; }
.related h2 { font-size: 26px; margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.related-grid a { text-decoration: none; padding: 22px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--ink); transition: border-color .25s; }
.related-grid a:hover { border-color: var(--terra); color: var(--terra-2); }
.related-grid a span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-top: 12px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card { background: var(--bg); border: 1px solid var(--line-2); text-decoration: none; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.post-card:hover { border-color: var(--terra); transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card div { padding: 26px 26px 30px; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.post-card p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.post-card .more { display: block; margin-top: 16px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 34px 0; border-top: 1px solid var(--line-2); }
.facts div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-2); }
.facts b { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); font-weight: 500; margin-bottom: 6px; }
.facts span { font-family: var(--serif); font-size: 19px; color: var(--ink); }
@media (max-width: 700px) { .article-wrap { padding: 60px 0 80px; } .article-cta { padding: 34px 24px; } .article td:first-child { white-space: normal; } }

/* menu: 4 linki + 6 flag — zagęszczenie na średnich szerokościach, żeby nic nie wychodziło poza ekran */
@media (max-width: 1280px) { nav { padding-left: 28px; padding-right: 28px; } .nav-links { gap: 22px; } .nav-links a { font-size: 12px; letter-spacing: .14em; } .lang-btn { padding: 5px 5px; } }
@media (max-width: 1000px) and (min-width: 701px) { .nav-links { gap: 14px; } .nav-links a { font-size: 11px; letter-spacing: .1em; } .logo-sub { display: none; } }

/* przyciski w artykułach: biały tekst (reguła `.article a` nie może przykrywać koloru .btn-primary) */
.article a.btn, .article a.btn:hover, .article a.btn:visited { color: #ffffff; text-decoration: none; }
