/* =============================================
   KLIN.EU — Produkcja B2B v3
   ============================================= */

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

:root {
  --clr-bg:       #14120f;
  --clr-surface:  #1f1d18;
  --clr-card:     #2a251f;
  --clr-border:   rgba(255,255,255,.11);
  --clr-accent:   #c8a96e;
  --clr-text:     #c8c2b8;
  --clr-muted:    #9a9186;
  --clr-white:    #edeae4;
  --clr-tag:      #2a2a24;
  --clr-heading:   #edeae4;
  --logo-filter:   none;
  --topbar-bg:     rgba(20,18,15,.96);
  --menu-bg:       rgba(20,18,15,.98);
  --card-hover-bg: #322c22;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --container: 1100px;
  --gap: clamp(1.5rem, 4vw, 3rem);


/* === LIGHT MODE === */
body.light {
  --clr-bg:        #ede8e0;
  --clr-surface:   #e4ddd4;
  --clr-card:      #d8d0c4;
  --clr-border:    rgba(0,0,0,.14);
  --clr-accent:    #8a5e2a;
  --clr-text:      #1e1a16;
  --clr-muted:     #5a5048;
  --clr-white:     #1e1a16;
  --clr-heading:   #1e1a16;
  --logo-filter:   invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.35);
  --topbar-bg:     rgba(237,232,224,.96);
  --menu-bg:       rgba(237,232,224,.98);
  --card-hover-bg: #ccc4b4;
}

body.light .breath {
  background: linear-gradient(180deg, #c8c0b0 0%, #b8ae9c 50%, #c8c0b0 100%);
  border-top: 1px solid rgba(154,110,58,.2);
  border-bottom: 1px solid rgba(154,110,58,.2);
}
body.light .breath .breath-text {
  color: #1e1a16;
}

body.light .pcard { background: var(--clr-card); }
body.light .pcard-img { background: #8a7d6a; }
body.light .tech-item { background: var(--clr-card); }
body.light .tech-img { background: #8a7d6a; }
body.light h1 { color: #f0ece5; } /* hero zawsze ciemne */
body.light .hero-sub { color: rgba(240,236,229,.80); }
body.light .hero-label { color: #c8a96e; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* === TOPBAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.logo { flex-shrink: 0; }
.logo img {
  height: 46px;
  width: auto;
  aspect-ratio: 520 / 240;
  display: block;
  filter: var(--logo-filter);
}
.menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.menu a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color .2s;
}
.menu a:hover { color: var(--clr-text); }
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  flex-shrink: 0;
}
.header-contact a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--clr-muted);
  transition: color .2s;
}
.header-contact a:hover { color: var(--clr-accent); }

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--clr-text);
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === BUTTONS === */
.btn-cta {
  display: inline-block;
  padding: .65rem 1.5rem;
  background: var(--clr-accent);
  color: #0d0d0b;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--clr-accent);
  transition: background .2s, color .2s;
}
.btn-cta:hover { background: transparent; color: var(--clr-accent); }
.btn-secondary {
  display: inline-block;
  padding: .65rem 1.5rem;
  background: transparent;
  color: var(--clr-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--clr-border);
  transition: color .2s, border-color .2s;
}
.btn-secondary:hover { color: var(--clr-text); border-color: rgba(255,255,255,.2); }

/* === SECTION LABEL === */
.label-row {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-border);
}
.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* === HERO === */
.hero {
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 2rem;
}
h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: .9rem;
  font-weight: 300;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-img {
  opacity: 1;
  background: #1a1610;
  position: relative;
}
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #14120f 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}
.hero-img img { width: 100%; height: auto; object-fit: contain; display: block; }
.hero-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--clr-accent) 0%, transparent 40%);
  opacity: .4;
}

/* === FOR WHO === */
.for-who {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.for-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 3rem;
}
.for-who-item { display: flex; gap: 1rem; align-items: start; }
.fw-dash { font-family: var(--font-mono); color: var(--clr-accent); flex-shrink: 0; margin-top: .15rem; }
.for-who-item strong { display: block; font-size: .88rem; font-weight: 500; color: var(--clr-heading); margin-bottom: .3rem; }
.for-who-item p { font-size: .82rem; font-weight: 300; color: var(--clr-muted); line-height: 1.6; }

/* === SECTIONS === */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--clr-border); }

/* === PROCESS CARDS === */
.process-section { background: var(--clr-bg); }

.process-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--clr-border);
}

.pcard {
  background: #2a251f;
  overflow: hidden;
  transition: background .2s;
}
.pcard:hover { background: #252118; }

.pcard-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1610;
  border-bottom: 1px solid var(--clr-border);
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity .3s, transform .4s;
}
.pcard:hover .pcard-img img { opacity: 1; transform: scale(1.03); }

.pcard-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pcard-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--clr-accent);
  opacity: .6;
}
.pcard-body h3 {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pcard-body p {
  font-size: .82rem;
  font-weight: 300;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* === HOW WE WORK === */
.how-section { background: var(--clr-surface); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--clr-border);
}
.hstep {
  padding: 1.75rem;
  background: var(--clr-card);
  display: flex;
  gap: 1rem;
  align-items: start;
}
.hstep-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--clr-accent);
  opacity: .6;
  flex-shrink: 0;
  padding-top: .15rem;
  letter-spacing: .1em;
}
.hstep strong { display: block; font-size: .88rem; font-weight: 500; color: var(--clr-heading); margin-bottom: .4rem; }
.hstep p { font-size: .82rem; font-weight: 300; color: var(--clr-muted); line-height: 1.7; }

/* === ZAPLECZE TECHNICZNE — pomniejszone === */
.tech-section { background: var(--clr-bg); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  border: 1px solid var(--clr-border);
  opacity: 1;
}
.tech-item {
  background: var(--clr-card);
  overflow: hidden;
  transition: opacity .2s;
}
.tech-item:hover { opacity: 1; }

.tech-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1610;
  border-bottom: 1px solid var(--clr-border);
}
.tech-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .5rem;
  opacity: .55;
  filter: grayscale(30%);
  transition: opacity .3s;
}
.tech-item:hover .tech-img img { opacity: .8; }

.tech-info {
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tech-info strong {
  font-size: .78rem;
  font-weight: 500;
  color: var(--clr-heading);
}
.tech-info span {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--clr-muted);
}

/* === FILTER === */
.filter-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.filter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--clr-border);
}
.filter-yes, .filter-no {
  padding: 2rem 2.25rem;
  background: var(--clr-card);
}
.filter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.filter-yes ul, .filter-no ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.filter-yes li, .filter-no li {
  font-size: .85rem;
  font-weight: 300;
  color: var(--clr-text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.filter-yes li::before { content: '✓'; position: absolute; left: 0; font-family: var(--font-mono); font-size: .75rem; color: var(--clr-accent); }
.filter-no li::before { content: '×'; position: absolute; left: 0; font-family: var(--font-mono); font-size: .75rem; color: var(--clr-muted); }

/* === CONTACT === */
.contact-section { padding-block: clamp(4rem, 8vw, 7rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--gap);
  align-items: start;
}
.contact-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--clr-heading);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.contact-left p {
  font-size: .88rem;
  font-weight: 300;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cc-label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clr-accent); }
.contact-card a { font-family: var(--font-mono); font-size: .88rem; color: var(--clr-text); transition: color .2s; }
.contact-card a:hover { color: var(--clr-accent); }
.contact-card address { font-family: var(--font-mono); font-size: .78rem; color: var(--clr-muted); line-height: 1.75; }
.contact-card small { font-family: var(--font-mono); font-size: .72rem; color: var(--clr-muted); line-height: 1.65; border-top: 1px solid var(--clr-border); padding-top: .75rem; }

/* === FOOTER === */
.footer { background: var(--clr-surface); border-top: 1px solid var(--clr-border); padding-block: 1.5rem; }
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--clr-muted);
  letter-spacing: .06em;
}
.footer-b2c { color: var(--clr-accent); opacity: .6; transition: opacity .2s; }
.footer-b2c:hover { opacity: 1; }

/* === RESPONSIVE === */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .filter-inner { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: block; width: 100%; margin-top: 2rem; opacity: .9; }
}

@media (max-width: 640px) {
  .menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(13,13,11,.98);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: .9rem 1.5rem; border-bottom: 1px solid var(--clr-border); }
  .menu a:last-child { border-bottom: none; }
  .header-contact { display: none; }
  .hamburger { display: flex; }
  .nav { position: relative; }
  .process-cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}

/* === BREATH SECTIONS === */
/* .breath-section removed */
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #161410;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}
.breath-section--alt {
  background: #1a1712;
}
.breath-text {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 640px;
  margin-inline: auto;
  opacity: .9;
}

/* === ODDECH === */
.breath {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #221e17 0%, #3d3528 50%, #221e17 100%);
  border-top: 1px solid rgba(200,169,110,.18);
  border-bottom: 1px solid rgba(200,169,110,.18);
  text-align: center;
}
.breath-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  color: #edeae4;
  line-height: 1.45;
  letter-spacing: -.01em;
  max-width: 680px;
  margin-inline: auto;
}

/* === THEME TOGGLE === */
.theme-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  cursor: pointer;
  padding: .3rem .65rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--clr-muted);
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--clr-accent); border-color: var(--clr-accent); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { line-height: 1; font-size: .82rem; }
body:not(.light) .icon-sun { display: none; }
body.light .icon-moon { display: none; }

/* Hero zawsze ciemne — niezależnie od trybu */
.hero {
  background: #14120f;
}
.hero-inner {
  background: #14120f;
}
body.light .for-who {
  background: var(--clr-surface);
}
body.light .how-section {
  background: var(--clr-surface);
}
body.light .tech-section {
  background: var(--clr-bg);
}
body.light .process-section {
  background: var(--clr-bg);
}
body.light .filter-section {
  background: var(--clr-surface);
}
body.light .contact-section {
  background: var(--clr-bg);
}
body.light .footer {
  background: var(--clr-surface);
}
