/* ==========================================================================
   Blok „Warianty po audycie (rysunek)” (.redl). Źródło: assets/css/oferta.css
   (Choices as rows; Before / after an audit: three variants of one office).
   ========================================================================== */

.choice {
  position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .2rem .95rem; align-items: start;
  padding: .85rem .5rem .85rem .25rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .2s;
}
.choice:last-child { border-bottom: 0; }
.choice:hover { background: var(--paper-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice__dot { position: relative; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%; border: 1.5px solid var(--muted-2); background: #fff; transition: border-color .2s; }
.choice__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .35s var(--ease); }
.choice:hover .choice__dot { border-color: var(--navy); }
.choice input:checked + .choice__dot { border-color: var(--orange); }
.choice input:checked + .choice__dot::after { transform: none; }
.choice input:focus-visible + .choice__dot { outline: 2px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.choice__t { font-size: 1rem; line-height: 1.45; color: var(--text); transition: color .2s; }
.choice input:checked ~ .choice__t { color: var(--navy-900); font-weight: 500; }
.choice__d { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

.redl__opts { margin: 1.75rem 0 0; padding: 0; border: 0; min-width: 0; border-top: 1px solid var(--line-strong); }
.redl .choice { padding: 1rem .5rem 1rem .25rem; }
.redl .choice__t { font-size: 1.0625rem; font-weight: 500; color: var(--navy); }
.redl .choice input:checked ~ .choice__t { color: var(--navy-900); }

.redl .plan {
  margin: 0; display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.redl .plan__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.5rem;
  padding: .85rem 1.25rem .8rem; border-bottom: 1px solid var(--line);
}
.redl .plan__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.25; color: var(--navy-900); }
.redl .plan__state {
  font-family: var(--font-ui); font-weight: 500; font-size: .6875rem; line-height: 1.2;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2);
}
.redl .plan__draw { flex: 1; display: grid; place-items: center; min-height: 0; padding: 1.25rem clamp(.75rem, 2vw, 1.5rem) .75rem; }
.plan__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem;
  padding: .85rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper-2);
}
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend svg { width: 16px; height: 16px; overflow: visible; }
.lg-x { fill: none; stroke: var(--orange-600); stroke-width: 2; stroke-linecap: round; }
.lg-cloud { fill: none; stroke: var(--orange-600); stroke-width: 1.5; }
.lg-tick { fill: none; stroke: var(--navy-900); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
circle.lg-tick { fill: #fff; }
.redl__sum { margin: 0; font-family: var(--font-ui); font-size: .9375rem; color: var(--muted); }
.redl__sum b { font-weight: 600; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.redl__note { margin: 1.75rem 0 0; max-width: 62ch; color: var(--text); }

/* the drawing: navy ink on white, the cuts in deep navy */
.iso--redline { display: block; width: 100%; height: auto; overflow: visible; }
.iso--redline path { fill: none; stroke: var(--navy-700); stroke-linejoin: round; stroke-linecap: round; }
.iso--redline .f { fill: var(--paper); }
.iso--redline .o { stroke-width: 1.3; }
.iso--redline .i { stroke-width: .75; }
.iso--redline .d { stroke-width: .65; }
.iso--redline .g { stroke: var(--navy-100); stroke-width: .8; }
.iso--redline .p { fill: var(--navy-900); stroke: var(--navy-900); stroke-width: .8; }
.iso--redline .dev { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.iso--redline .dev path { transition: stroke .4s, fill .4s; }
[data-state="obecne"] .dev[data-obecne="off"],
[data-state="hybryda"] .dev[data-hybryda="off"],
[data-state="nowe"] .dev[data-nowe="off"] { opacity: 0; transform: translateY(-10px); }
[data-state="hybryda"] .dev[data-hybryda="rm"] path,
[data-state="nowe"] .dev[data-nowe="rm"] path { stroke: var(--muted-2); stroke-dasharray: 2.6 2.2; }
[data-state="hybryda"] .dev[data-hybryda="rm"] .f,
[data-state="nowe"] .dev[data-nowe="rm"] .f { fill: transparent; }
.iso--redline .mk { display: none; }
[data-state="obecne"] .mk[data-for="obecne"],
[data-state="hybryda"] .mk[data-for="hybryda"],
[data-state="nowe"] .mk[data-for="nowe"] { display: inline; }
.iso--redline .mk-x, .iso--redline .mk-cloud { fill: none; stroke: var(--orange-600); stroke-linecap: round; stroke-dasharray: 1; animation: iso-mark .8s var(--ease) both; }
.iso--redline .mk-x { stroke-width: 1.8; }
.iso--redline .mk-cloud { stroke-width: 1.4; animation-duration: 1.1s; }
.iso--redline .mk-tick circle { fill: #fff; stroke: var(--navy-900); stroke-width: 1.3; }
.iso--redline .mk-tick path { fill: none; stroke: var(--navy-900); stroke-width: 1.6; }
.iso--redline .mk-tick { animation: redl-fade .4s ease-out .2s both; opacity: 0; }
@keyframes iso-mark { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes redl-fade { to { opacity: 1; } }

@media (max-width: 640px) {
  .redl .plan__top, .plan__foot { padding-inline: 1rem; }
  .iso--redline .o { stroke-width: 2.1; } .iso--redline .i { stroke-width: 1.25; } .iso--redline .d { stroke-width: 1.05; }
  .iso--redline .mk-x { stroke-width: 2.8; } .iso--redline .mk-cloud { stroke-width: 2.2; }
  .iso--redline .mk-tick circle { r: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .iso--redline .mk-x, .iso--redline .mk-cloud, .iso--redline .mk-tick { animation: none !important; opacity: 1; }
  .iso--redline .dev, .iso--redline .dev path { transition: none; }
}
