/* ═══════════════════════════════════════════
   SEKCJA-SPECIFIC STYLES
   ═══════════════════════════════════════════ */

/* ── 01 HERO ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-title-line { display: block; }
.hero-underline {
  display: inline-block;
  position: relative;
  color: var(--orange-deep);
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.14em;
  background: var(--orange-soft);
  z-index: -1;
  border-radius: 2px;
}
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.hero-meta span strong { color: var(--ink); font-weight: 600; display: block; font-size: 20px; font-family: 'Instrument Serif', Georgia, serif; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.hero-visual .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent, transparent 8px,
    rgba(0,0,0,0.025) 8px, rgba(0,0,0,0.025) 9px
  );
}
.hero-visual .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.hero-visual .photo-frame {
  position: absolute; inset: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.hero-visual .photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.02) contrast(1.02);
}
.hero-visual .overlay-caption {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px; color: var(--ink);
  border-left: 3px solid var(--orange);
}
.hero-visual .overlay-caption strong { font-weight: 600; display: block; margin-bottom: 2px; }
.hero-visual .overlay-caption span { font-size: 11px; color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; }

/* ── 02 ALARM ── */
.alarm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.alarm-counter {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(130px, 20vw, 260px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.03em;
  font-weight: 400;
  position: relative;
}
.alarm-counter sup { font-size: 0.35em; vertical-align: top; color: rgba(255,255,255,0.55); font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 0.05em; margin-left: 8px; }
.alarm-counter .unit { font-size: 0.2em; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; display: block; font-family: 'Inter', sans-serif; text-transform: uppercase; margin-top: 8px; }

.alarm-points { list-style: none; }
.alarm-points li {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; gap: 18px; align-items: baseline;
  font-size: 17px; color: rgba(255,255,255,0.92);
}
.alarm-points li:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }
.alarm-points li .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  min-width: 24px;
}

/* ── 03 PROBLEM ── */
.problem-narrative p {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 820px;
}
.problem-narrative p strong { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 60%, var(--orange-soft) 60%); padding: 0 2px; }
.problem-narrative .kicker {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--orange-deep);
  line-height: 1.25;
  margin: 40px 0 24px;
  max-width: 820px;
}

/* ── 04 BEFORE / AFTER ── */
.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  max-height: 66vh;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  user-select: none;
  cursor: ew-resize;
  background: var(--cream-2);
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane.after { clip-path: inset(0 0 0 var(--split, 50%)); }

.ba-scene {
  width: 100%; height: 100%;
  display: flex; align-items: stretch; justify-content: stretch;
  background: linear-gradient(180deg, #F5ECD8 0%, #EADFBF 70%, #D8C9A0 100%);
  position: relative;
  padding: 40px;
}

/* apartment interior illustration */
.apt {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78%; height: 78%;
  background: #EFE6D0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.apt .wall-stripe {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent, transparent 40px,
    rgba(0,0,0,0.03) 40px, rgba(0,0,0,0.03) 41px
  );
}
/* piecyk gazowy on the wall */
.piecyk {
  position: absolute;
  top: 14%; right: 10%;
  width: 22%; aspect-ratio: 3/4;
  background: #E8E0D0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8%;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}
.piecyk .vent {
  width: 80%; height: 10%;
  background: var(--ink);
  border-radius: 1px;
}
.piecyk .dial {
  width: 28%; aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  position: relative;
}
.piecyk .dial::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 38%;
  background: var(--alarm);
  transform: translate(-50%, -90%) rotate(40deg);
  transform-origin: bottom;
}
.piecyk .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}
/* exhaust pipe going up */
.piecyk-flue {
  position: absolute;
  top: 0; right: 18%;
  width: 2%; height: 20%;
  background: var(--ink);
}

/* danger markers */
.danger-co {
  position: absolute;
  top: 6%; right: 22%;
  background: var(--alarm);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(199,62,29,0.4);
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge { 50% { transform: scale(1.08); } }

.co-particles {
  position: absolute;
  top: 14%; right: 14%;
  width: 20%; height: 20%;
  pointer-events: none;
}
.co-particles span {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(199,62,29,0.5);
  border-radius: 50%;
  animation: rise 3s ease-out infinite;
}
.co-particles span:nth-child(1) { left: 20%; animation-delay: 0s; }
.co-particles span:nth-child(2) { left: 45%; animation-delay: 0.7s; }
.co-particles span:nth-child(3) { left: 70%; animation-delay: 1.4s; }
.co-particles span:nth-child(4) { left: 30%; animation-delay: 2.1s; }
@keyframes rise {
  0%   { top: 90%; opacity: 0; transform: scale(0.5); }
  20%  { opacity: 1; }
  100% { top: -10%; opacity: 0; transform: scale(1.5); }
}

/* sink (same in both scenes) */
.sink {
  position: absolute;
  bottom: 14%; left: 12%;
  width: 28%; height: 16%;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 8px 8px;
}
.sink .tap {
  position: absolute;
  top: -24px; left: 50%;
  width: 4px; height: 24px;
  background: var(--ink);
  transform: translateX(-50%);
}
.sink .tap::before {
  content: ''; position: absolute;
  top: 0; left: -6px;
  width: 16px; height: 4px;
  background: var(--ink);
}
.sink .water {
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 0;
  background: #6FA8D9;
  transform: translateX(-50%);
  animation: flow 2.5s ease-in infinite;
}
@keyframes flow {
  0% { height: 0; }
  40% { height: 80%; }
  100% { height: 80%; opacity: 0.6; }
}

/* AFTER scene: no piecyk, just a blank wall + calm tag */
.calm-tag {
  position: absolute;
  top: 14%; right: 10%;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(74,122,58,0.25);
  display: flex; align-items: center; gap: 8px;
}
.calm-tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #B8E38E;
}
.after-note {
  position: absolute;
  bottom: 14%; right: 10%;
  max-width: 36%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-2);
  border-left: 3px solid var(--green);
  line-height: 1.5;
}

.ba-label {
  position: absolute;
  top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 500;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.ba-label.before { left: 24px; background: rgba(199,62,29,0.9); color: #fff; }
.ba-label.after  { right: 24px; background: rgba(74,122,58,0.9); color: #fff; }

/* split handle */
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}
.ba-handle .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  cursor: ew-resize;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.ba-handle .knob .arrow {
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.ba-handle .knob .arrow.l { border-right: 6px solid var(--ink); }
.ba-handle .knob .arrow.r { border-left: 6px solid var(--ink); }

.ba-hint {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 16px;
  letter-spacing: 0.08em;
}

/* ── 05 HOW IT WORKS ── */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.how-steps { display: flex; flex-direction: column; gap: 2px; }
.how-step {
  padding: 22px 20px;
  border-top: 1px solid var(--rule-soft);
  cursor: pointer;
  display: flex; gap: 18px; align-items: flex-start;
  transition: background 0.2s;
  background: transparent;
  border-left: 3px solid transparent;
}
.how-step:last-child { border-bottom: 1px solid var(--rule-soft); }
.how-step:hover { background: rgba(255,255,255,0.5); }
.how-step.active {
  background: var(--paper);
  border-left: 3px solid var(--orange);
}
.how-step .num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 38px;
  color: var(--ink-faint);
  line-height: 1;
  min-width: 52px;
  transition: color 0.2s;
}
.how-step.active .num { color: var(--orange); }
.how-step h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.how-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.how-vis {
  aspect-ratio: 1/1;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.how-vis svg { width: 100%; height: 100%; }

/* ── 06 COSTS ── */
.cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.cost-card-big {
  padding: 40px 32px;
  border-radius: 8px;
  position: relative;
  display: flex; flex-direction: column;
}
.cost-card-big.bad {
  background: var(--alarm-soft);
  border: 1px solid rgba(199,62,29,0.3);
}
.cost-card-big.good {
  background: var(--green-soft);
  border: 1px solid rgba(74,122,58,0.3);
}
.cost-card-big .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.cost-card-big.bad .label  { color: var(--alarm); }
.cost-card-big.good .label { color: var(--green); }
.cost-card-big h4 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 24px; }
.cost-card-big .price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(72px, 8vw, 110px);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.cost-card-big .price small { font-size: 0.35em; font-family: 'Inter', sans-serif; color: var(--ink-soft); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.cost-card-big .price-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; margin-bottom: 28px; }
.cost-card-big ul { list-style: none; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.cost-card-big li { padding: 6px 0; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.cost-card-big li span { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink); }

.cost-summary {
  margin-top: 40px;
  background: var(--graphite);
  color: var(--paper);
  border-radius: 8px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.cost-summary .item h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(38px, 4vw, 54px);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cost-summary .item p { font-size: 13px; color: rgba(245,233,212,0.7); line-height: 1.5; }
.cost-foot {
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 820px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── 07 FEARS ── */
.fear-list { max-width: 880px; margin: 0 auto; }
.fear {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  transition: padding 0.3s;
}
.fear:last-child { border-bottom: 1px solid var(--rule); }
.fear-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  background: none; border: none; width: 100%;
  text-align: left;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0;
}
.fear-q .toggle {
  min-width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background 0.2s, color 0.2s, transform 0.3s;
  font-family: 'Inter', sans-serif;
  margin-left: 24px;
  flex-shrink: 0;
}
.fear.open .fear-q .toggle {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: rotate(45deg);
}
.fear-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
}
.fear.open .fear-a {
  max-height: 600px;
  padding-top: 18px;
}
.fear-a p { margin-bottom: 10px; max-width: 720px; }
.fear-a .pill {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-deep);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ── 08 REALIZATIONS ── */
.real-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.real-cards { display: flex; flex-direction: column; gap: 16px; }
.real-card-x {
  padding: 24px 28px;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
  display: flex;
  gap: 24px; align-items: center;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.real-card-x:hover { transform: translateX(4px); border-color: var(--orange); }
.real-card-x .year {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 38px;
  color: var(--orange);
  line-height: 1;
  min-width: 80px;
}
.real-card-x h4 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.real-card-x p { font-size: 13px; color: var(--ink-soft); }
.real-card-x .status {
  margin-left: auto;
  padding: 4px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}

.real-photo {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-2);
  position: relative;
  border: 1px solid var(--rule);
}
.real-photo img { width: 100%; height: 100%; object-fit: cover; }
.real-photo .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(30,26,21,0.88));
  color: #fff;
  font-size: 12px;
}
.real-photo .caption strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }

/* ── 09 STORY (testimonial) ── */
.story-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 1000px;
  margin: 40px auto 24px;
  letter-spacing: -0.01em;
  position: relative;
}
.story-quote::before {
  content: '“';
  font-size: 2.5em;
  color: var(--orange);
  position: absolute;
  left: -0.5em; top: -0.2em;
  line-height: 1;
}
.story-attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 10 CTA ── */
.cta-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid var(--rule);
}
.cta-card h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 20px; }
.cta-item {
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
}
.cta-item:first-of-type { border-top: none; padding-top: 0; }
.cta-item .k { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.cta-item .v { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: var(--ink); text-align: right; }
.cta-item .v small { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-soft); display: block; margin-top: 2px; }

.cta-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .alarm-grid, .how-layout, .cost-compare, .real-layout, .cta-layout, .cost-summary {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .cost-summary { padding: 28px 24px; }
  .ba-stage { aspect-ratio: 4/3; }
  .hero-visual { aspect-ratio: 16/10; max-height: 340px; }
}
