/* ==========================================================================
   Blok „Ekologia: kalkulator śladu” (.eko-calc, #kalkulator).
   Źródło: assets/css/podstrony/ekologia.css (.p-ekologia → .eko-calc) + suwak .range
   i podziałka .calc__scale z podstrona.css, pytanie .faq__item z podstrona.css (zawężone
   przez :where(.eko-calc), ta sama specyficzność).
   ========================================================================== */

.eko-calc {
  --eko-950: #19290f; --eko-900: #233a1c; --eko-800: #2a4421; --eko-700: #36552a; --eko-600: #3e7c12;
  --eko-500: #61834e; --eko-400: #749262; --eko-300: #8fbb5e; --eko-200: #cbe0b0; --eko-100: #e3ecd9;
  --eko-50: #f4f8ef; --eko-mist: #cddcc0;
  --eko-shadow-float: 0 1px 2px rgba(25, 41, 15, .06), 0 16px 36px -14px rgba(25, 41, 15, .28);
  --section-y: clamp(3.5rem, 6.5vw, 6rem);
}
.eko-calc.sect { border-top: 0; }
.eko-calc.sect--tint { background: var(--eko-50); }
.eko-calc .hl { color: var(--eko-600); }
.eko-calc .eyebrow__icon { background: var(--eko-500); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }

/* --------------------------------------------------------------------------
   Suwak, podziałka i rozwijane „Jak liczymy?” (wspólne moduły prototypu)
   -------------------------------------------------------------------------- */

:where(.eko-calc) .calc__scale { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .75rem; color: var(--muted-2); margin-top: -.15rem; }
:where(.eko-calc) .range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: .35rem 0; background: transparent; cursor: pointer; --p: 50%; }
:where(.eko-calc) .range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--navy) var(--p), var(--line-strong) var(--p)); }
:where(.eko-calc) .range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy-900); box-shadow: 0 2px 6px rgba(22, 42, 67, .25); transition: transform .2s var(--ease);
}
:where(.eko-calc) .range:active::-webkit-slider-thumb { transform: scale(1.15); }
:where(.eko-calc) .range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
:where(.eko-calc) .range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--navy); }
:where(.eko-calc) .range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-900); box-shadow: 0 2px 6px rgba(22, 42, 67, .25); }
:where(.eko-calc) .range:focus-visible { outline: none; box-shadow: none; }
:where(.eko-calc) .range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
:where(.eko-calc) .range:focus-visible::-moz-range-thumb { outline: 2px solid var(--navy-900); outline-offset: 3px; }

:where(.eko-calc) .faq__item { border-bottom: 1px solid var(--line); }
:where(.eko-calc) .faq__item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; cursor: pointer;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; line-height: 1.3; color: var(--navy); letter-spacing: -.005em;
  transition: color .2s;
}
:where(.eko-calc) .faq__item summary::-webkit-details-marker { display: none; }
:where(.eko-calc) .faq__item summary:hover { color: var(--navy-900); }
:where(.eko-calc) .faq__ring {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--navy);
  transition: background .25s, border-color .25s, color .25s;
}
:where(.eko-calc) .faq__ring .icon { width: 1rem; height: 1rem; transition: transform .35s var(--ease); }
:where(.eko-calc) .faq__item summary:hover .faq__ring { border-color: var(--navy); }
:where(.eko-calc) .faq__item[open] .faq__ring { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
:where(.eko-calc) .faq__item[open] .faq__ring .icon { transform: rotate(180deg); }
:where(.eko-calc) .faq__a { padding: 0 3.5rem 1.5rem 0; }
:where(.eko-calc) .faq__a p { margin: 0; max-width: 64ch; }
@media (max-width: 767px) {
  :where(.eko-calc) .faq__a { padding-right: 0; }
}
@media (max-width: 560px) {
  :where(.eko-calc) .faq__ring { width: 36px; height: 36px; }
}

/* w zieleni */
.eko-calc .faq__item summary:hover .faq__ring { border-color: var(--eko-600); }
.eko-calc .faq__item[open] .faq__ring { background: var(--eko-900); border-color: var(--eko-900); }
/* -webkit- and -moz- in separate rules: one shared list would drop the whole rule */
.eko-calc .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--eko-500) var(--p), var(--eko-100) var(--p)); }
.eko-calc .range::-webkit-slider-thumb { border-color: var(--eko-900); box-shadow: 0 2px 6px rgba(25, 41, 15, .25); }
.eko-calc .range::-moz-range-track { background: var(--eko-100); }
.eko-calc .range::-moz-range-progress { background: var(--eko-500); }
.eko-calc .range::-moz-range-thumb { border-color: var(--eko-900); }

/* --------------------------------------------------------------------------
   Kalkulator
   -------------------------------------------------------------------------- */

.eko-calc .shead { margin-bottom: clamp(1.75rem, 3vw, 2.25rem); }
.eko-calc .shead h2 { max-width: 24ch; }
.eko-calc .eko-calc__board {
  --ring: clamp(15rem, 21vw, 18.5rem);
  --gap: clamp(3rem, 7vw, 6.5rem);
  position: relative; display: grid; grid-template-columns: var(--ring) minmax(0, 40rem);
  justify-content: center; align-items: start; column-gap: var(--gap);
}
.eko-calc .eko-calc__dial { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; min-width: 0; }

/* the dial: an open C in the presentation's ramp around a white disc with the visitor's number */
.eko-calc .eko-ring { position: relative; width: var(--ring); aspect-ratio: 1; container-type: inline-size; }
.eko-calc .eko-ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eko-calc .eko-ring__track, .eko-calc .eko-ring__fill { fill: none; stroke-width: 15; stroke-linecap: round; }
.eko-calc .eko-ring__track { stroke: var(--eko-100); }
.eko-calc .eko-ring__fill { stroke-dasharray: 100 100; transition: stroke-dashoffset .35s var(--ease); }
.eko-calc .eko-ring.is-intro .eko-ring__fill { transition: stroke-dashoffset 1.5s cubic-bezier(.45, 0, .2, 1); }
.eko-calc .eko-ring__disc {
  position: absolute; inset: 12.5%; border-radius: 50%; background: #fff;
  box-shadow: var(--eko-shadow-float), inset 0 0 0 1px var(--eko-100);
  display: grid; align-content: center; justify-items: center; gap: .45rem; padding: 0 10%; text-align: center;
}
.eko-calc .eko-ring__num {
  font-weight: 300; font-size: clamp(2.25rem, 17cqi, 3.75rem); line-height: .95; letter-spacing: -.035em;
  color: var(--eko-600); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.eko-calc .eko-ring__cap { font-size: .9375rem; line-height: 1.3; color: var(--muted); max-width: 13ch; }

/* the controls under the dial */
.eko-calc .eko-calc__ctrl { display: grid; gap: .45rem; }
.eko-calc .eko-calc__label { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--navy-900); }
.eko-calc .eko-calc__field {
  display: flex; align-items: center; gap: .5rem; height: 3.25rem; padding: 0 1.1rem; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s;
}
.eko-calc .eko-calc__field:hover { box-shadow: inset 0 0 0 1.5px var(--eko-500); }
.eko-calc .eko-calc__field:focus-within { box-shadow: inset 0 0 0 2px var(--eko-600), 0 0 0 4px rgba(62, 124, 18, .14); }
.eko-calc .eko-calc__field input {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; outline: none;
  font: 600 1.375rem/1 var(--font-ui); letter-spacing: -.01em; color: var(--navy-900); font-variant-numeric: tabular-nums;
}
.eko-calc .eko-calc__field input:focus-visible { outline: none; box-shadow: none; }
.eko-calc .eko-calc__unit { font: 500 .9375rem/1 var(--font-ui); color: var(--muted); }
.eko-calc .eko-calc__field.is-invalid, .eko-calc .eko-calc__field.is-invalid:focus-within { box-shadow: inset 0 0 0 2px var(--error); }
.eko-calc .eko-calc__hint { margin: 0 0 .35rem; font: 400 .875rem/1.4 var(--font-ui); color: var(--muted); }
.eko-calc .eko-calc__hint.is-invalid { color: var(--error); font-weight: 500; }
.eko-calc .calc__scale { color: var(--muted); margin-top: -.25rem; }
.eko-calc .eko-calc__ex {
  justify-self: start; display: inline-flex; align-items: center; gap: .55rem; margin-top: .55rem;
  padding: .62rem 1rem .62rem .8rem; border: 0; border-radius: var(--radius-pill); cursor: pointer; text-align: left;
  background: #fff; box-shadow: inset 0 0 0 1px var(--eko-100), 0 6px 14px -10px rgba(25, 41, 15, .5);
  font: 500 .875rem/1.3 var(--font-ui); color: var(--navy-900);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.eko-calc .eko-calc__ex .icon { width: 1rem; height: 1rem; color: var(--eko-600); transition: color .25s; }
.eko-calc .eko-calc__ex:hover, .eko-calc .eko-calc__ex[aria-pressed="true"] { background: var(--eko-900); color: #fff; box-shadow: none; }
.eko-calc .eko-calc__ex:hover .icon, .eko-calc .eko-calc__ex[aria-pressed="true"] .icon { color: var(--eko-300); }

/* the results: white cards on one dashed spine, the disc half outside the card (as in the presentation);
   the first card lines up with the dial's centre, a dashed link runs out of the open side of the C */
.eko-calc .eko-calc__tree {
  position: relative; list-style: none; margin: 0; padding: calc(var(--ring) / 2 - 2.375rem) 0 0 30px;
  display: grid; gap: .6rem;
}
.eko-calc .eko-calc__tree::before {
  content: ""; position: absolute; left: 29px; top: calc(var(--ring) / 2); bottom: 2.375rem; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 2px, transparent 2px 8px);
}
.eko-calc .eko-calc__tree::after {
  content: ""; position: absolute; right: calc(100% - 30px); top: calc(var(--ring) / 2 - 1px);
  width: calc(var(--ring) * .125 + var(--gap) + 30px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 8px);
}
.eko-calc .eko-res {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head val" "cap val";
  align-items: center; align-content: center; column-gap: 1.25rem; row-gap: .25rem; min-height: 4.75rem;
  padding: .85rem 1.5rem .9rem 3.1rem; border-radius: 18px; background: #fff;
  box-shadow: var(--eko-shadow-float), inset 0 0 0 1px rgba(227, 236, 217, .8);
}
.eko-calc .eko-res__disc {
  position: absolute; z-index: 1; left: 0; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--eko-500);
  box-shadow: 0 0 0 5px var(--eko-50), 0 10px 18px -10px rgba(25, 41, 15, .6);
}
.eko-calc .eko-res__disc .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.9; }
.eko-calc .eko-res--woda .eko-res__disc { background: var(--eko-600); }
.eko-calc .eko-res--energia .eko-res__disc { background: var(--eko-400); }
.eko-calc .eko-res--co2 .eko-res__disc { background: var(--eko-300); color: var(--eko-900); }
.eko-calc .eko-res__co2 { font: 600 1rem/1 var(--font-ui); letter-spacing: -.01em; }
.eko-calc .eko-res__head { grid-area: head; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; min-width: 0; }
.eko-calc .eko-res__name { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--navy-900); }
.eko-calc .eko-op {
  display: inline-block; padding: .38em .62em; border-radius: 3px; background: var(--eko-300); color: var(--eko-900);
  font: 500 .75rem/1.2 var(--font-ui); letter-spacing: .02em; white-space: nowrap;
}
.eko-calc .eko-res__val { grid-area: val; margin: 0; text-align: right; white-space: nowrap; color: var(--eko-900); }
.eko-calc .eko-res__val span {
  font-weight: 300; font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.375rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.eko-calc .eko-res__val small { margin-left: .1rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
.eko-calc .eko-res--plastik .eko-res__val { color: var(--eko-600); }
.eko-calc .eko-res__cap { grid-area: cap; margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--muted); }

/* the foot: the claim with a small gauge from the presentation, the question and the pill */
.eko-calc .eko-calc__foot {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(1.75rem, 3vw, 2.25rem); padding-top: clamp(1.5rem, 2.5vw, 2rem); border-top: 1px solid var(--line-strong);
}
.eko-calc .eko-calc__claim { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); }
.eko-calc .eko-gauge { flex: none; width: 9.5rem; margin: 0; }
.eko-calc .eko-gauge svg { width: 100%; height: auto; overflow: visible; }
.eko-calc .eko-gauge .g1 { fill: var(--orange-600); }
.eko-calc .eko-gauge .g2 { fill: var(--orange); }
.eko-calc .eko-gauge .g3 { fill: var(--orange-100); }
.eko-calc .eko-gauge .g4 { fill: var(--line-strong); }
.eko-calc .eko-gauge .g5 { fill: var(--eko-200); }
.eko-calc .eko-gauge .g6 { fill: var(--eko-300); }
.eko-calc .eko-gauge .g7 { fill: var(--eko-600); }
.eko-calc .eko-gauge__needle { fill: var(--navy-900); }
.eko-calc .eko-gauge__hub { fill: #fff; stroke: var(--navy-900); stroke-width: 3.5; }
.eko-calc .eko-gauge figcaption {
  display: flex; justify-content: space-between; gap: .75rem; margin-top: .4rem;
  font: 500 .6875rem/1.2 var(--font-ui); letter-spacing: .02em; color: var(--muted);
}
.eko-calc .eko-gauge figcaption span { max-width: 6.5em; }
.eko-calc .eko-gauge figcaption span + span { text-align: right; }
.eko-calc .eko-calc__say { margin: 0; max-width: 58ch; font-size: 1.0625rem; color: var(--text); }
.eko-calc .eko-calc__say strong {
  display: block; margin-bottom: .35rem; font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--navy-900);
}
.eko-calc .eko-calc__example { margin: .85rem 0 0; max-width: 58ch; font-size: .9375rem; color: var(--muted); }
.eko-calc .eko-calc__example b { font-weight: 600; color: var(--navy-900); }
.eko-calc .eko-calc__ask { display: grid; justify-items: start; gap: 1rem; }
.eko-calc .eko-calc__ask p { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--navy-900); max-width: 22ch; }
.eko-calc .eko-how { margin-top: clamp(1.75rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.eko-calc .eko-how summary { font-size: 1.0625rem; }
.eko-calc .eko-how .faq__a p { max-width: 80ch; font-size: .9375rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .eko-calc .eko-calc__foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .eko-calc .eko-calc__board { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .eko-calc .eko-calc__dial { grid-template-columns: auto minmax(0, 22rem); align-items: center; justify-content: center; column-gap: clamp(1.5rem, 5vw, 3rem); }
  .eko-calc .eko-calc__tree { padding-top: 0; }
  .eko-calc .eko-calc__tree::before { top: 2.75rem; }
  .eko-calc .eko-calc__tree::after { display: none; }
}
@media (max-width: 760px) {
  .eko-calc .eko-calc__dial { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .eko-calc .eko-calc__ctrl { width: 100%; max-width: 26rem; }
  .eko-calc .eko-calc__claim { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .eko-calc .eko-calc__board { --ring: min(17.5rem, 78vw); }
  .eko-calc .eko-calc__ask .btn { width: 100%; justify-content: center; }
  /* phones: the field and the slider first, the dial out of the way, results as compact rows */
  html:not(.no-js) .eko-calc .eko-ring { display: none; }
  .eko-calc .eko-calc__board { row-gap: 1.5rem; }
  .eko-calc .eko-calc__tree { gap: .5rem; padding-left: 20px; }
  .eko-calc .eko-calc__tree::before { left: 19px; top: 1.6rem; bottom: 1.6rem; }
  .eko-calc .eko-res {
    grid-template-areas: "head head" "cap val"; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
    min-height: 0; row-gap: .3rem; padding: .65rem .9rem .7rem 2.05rem;
  }
  .eko-calc .eko-res__disc { width: 36px; height: 36px; margin: -18px 0 0 -18px; top: 1.6rem; }
  .eko-calc .eko-res__disc .icon { width: 1rem; height: 1rem; }
  .eko-calc .eko-res__name { font-size: 1rem; }
  .eko-calc .eko-res__head { gap: .2rem .5rem; }
  .eko-calc .eko-op { font-size: .6875rem; padding: .3em .5em; }
  .eko-calc .eko-res__val { text-align: right; }
  .eko-calc .eko-res__val span { font-size: 1.5rem; }
  .eko-calc .eko-res__val small { font-size: .875rem; }
  .eko-calc .eko-res__cap { font-size: .8125rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .eko-calc .eko-ring__fill { transition: none; }
}

/* bez JS: wynik dla wartości startowej, sterowanie ukryte */
.no-js .eko-calc .eko-calc__ctrl { display: none; }
