/* Configurator (/configurator/), pe baza nouă. Numai ce e propriu paginii; restul vine din baza.css.
   Cărțile de alegere: pe telefon orizontale (imaginea în stânga, textul întreg în dreapta, descrierea mereu vizibilă);
   de la 700 px verticale, imaginea sus. Bara Înapoi / Continuă: lipită jos sub 1000 px (degetul mare), sub cărți de la
   1000 px, ca nimic să nu alunece sub ea. Bara de jos a site-ului se ascunde cât configuratorul e pe ecran (.cfg-on). */

/* ------------------------------------------------------------ bara de jos a site-ului: nu peste bara configuratorului */
.cfg-on .hm-bar { display: none !important; }

/* ------------------------------------------------------------ antetul paginii (h1) */
.cfg-sec > .hm-s__in { padding-top: clamp(28px, 4vw, 64px); }
.cfg-sec.is-res > .hm-s__in { padding-bottom: 0; }
.cfg-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3.4vw, 48px); padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--hair); }
.cfg-head .hm-label { margin-bottom: 10px; }
.cfg-head__h { font-size: clamp(34px, 4.2vw, 68px); }
.cfg-head__say .hm-lead { margin-top: 0; }
.cfg-head__note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--mut); max-width: 56ch; }
.cfg-head__note svg { color: var(--plum-7); margin-top: 1px; }
@media (min-width: 1000px) {
  .cfg-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: clamp(32px, 5vw, 96px); }
}
@media (orientation: landscape) and (max-height: 520px) { .cfg-head__note { display: none; } }

/* ------------------------------------------------------------ pașii */
.cfg__form { position: relative; }
.cfg__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg__step[hidden] { display: none; }
html:not(.cfg-ready) .cfg__step[data-js-only] { display: none; }
html:not(.cfg-ready) .cfg__bar { display: none; }
html:not(.cfg-ready) .cfg__step + .cfg__step { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hair); }
@media (prefers-reduced-motion: no-preference) {
  html.cfg-ready .cfg__step:not([hidden]) { animation: cfg-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .cfg-res:not([hidden]) { animation: cfg-in .7s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes cfg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cfg__legend { display: block; width: 100%; padding: 0; outline: none; }
.cfg__legend:focus-visible { outline: 2px solid var(--vio-7); outline-offset: 6px; }
.cfg__label { display: block; margin-bottom: 10px; }
.cfg__t { display: block; font-weight: 300; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.08; color: var(--ink); letter-spacing: -.005em; }
.cfg__text { margin-top: 12px; max-width: 64ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--tx); }
.cfg__note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; background: var(--paper); border-left: 2px solid var(--plum-5); max-width: 76ch; font-size: 16px; line-height: 1.5; }
.cfg__note[hidden] { display: none; }
.cfg__note svg { color: var(--plum-7); margin-top: 2px; }
.cfg__help { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--mut); max-width: 76ch; }
.cfg__help svg { color: var(--plum-7); margin-top: 1px; }
.cfg__err:not(:empty) { margin-top: 12px; font-size: 15px; }
.cfg__cred { margin-top: 12px; }

/* ------------------------------------------------------------ cărțile de alegere */
.cfg__opts { display: grid; gap: 10px; margin-top: 24px; }
.cfg-c { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 104px; background: var(--white); border: 1px solid var(--hair-2); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.cfg-c[hidden] { display: none; }
.cfg-c__in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cfg-c:has(.cfg-c__in:focus-visible) { outline: 2px solid var(--vio-7); outline-offset: 2px; }
.cfg-c.is-on { border-color: var(--plum-7); box-shadow: inset 0 0 0 1px var(--plum-7); }
.cfg__step.is-bad .cfg-c { border-color: #9E1B32; }
.cfg-c__media { position: relative; display: block; overflow: hidden; background: #efedea; width: 100%; max-width: calc(var(--w) * 1px / var(--dpr)); }
.cfg-c__media .hm-fill { position: absolute; inset: 0; }
.cfg-c__ico { display: grid; place-items: center; background: var(--paper); color: var(--plum-7); }
.cfg-c__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 48px 14px 16px; align-self: center; }
.cfg-c__num { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--plum-7); font-variant-numeric: tabular-nums; }
.cfg-c__t { font-size: 19px; font-weight: 400; line-height: 1.25; color: var(--ink); }
.cfg-c__d { font-size: 15px; line-height: 1.45; color: var(--mut); }
.cfg-c__sep { font-size: 14px; line-height: 1.4; color: var(--plum-7); margin-top: 2px; }
.cfg-c__mark { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hair-2); border-radius: var(--r); background: var(--white); color: transparent; transition: background-color .15s, color .15s; }
.cfg-c.is-on .cfg-c__mark, .cfg-l.is-on .cfg-c__mark { background: var(--plum-7); border-color: var(--plum-7); color: var(--white); }
@media (hover: hover) { .cfg-c:hover, .cfg-l:hover { border-color: var(--tx); } }
@media (min-width: 700px) {
  .cfg__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cfg-c { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .cfg-c__media { aspect-ratio: 3 / 2; margin-inline: auto; }
  .cfg-c__ico { aspect-ratio: 3 / 2; }
  .cfg-c__body { align-self: start; padding: 16px 20px 20px; }
  .cfg-c__t { font-size: 20px; }
}
@media (min-width: 1000px) {
  .cfg__opts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .cfg__opts--4 .cfg-c__media, .cfg__opts--4 .cfg-c__ico { aspect-ratio: 5 / 2; }
  .cfg__opts--4 .cfg-c__body { padding: 14px 18px 16px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .cfg__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cfg-c { grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: none; min-height: 96px; }
  .cfg-c__media, .cfg-c__ico { aspect-ratio: auto; }
  .cfg-c__body { align-self: center; padding: 12px 44px 12px 14px; }
}

/* linia de panouri: produsul pe o placă albă, pe hârtie */
.cfg__lines { display: grid; gap: 12px; margin-top: 24px; }
.cfg-l { position: relative; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); background: var(--white); border: 1px solid var(--hair-2); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.cfg-l:has(.cfg-c__in:focus-visible) { outline: 2px solid var(--vio-7); outline-offset: 2px; }
.cfg-l.is-on { border-color: var(--plum-7); box-shadow: inset 0 0 0 1px var(--plum-7); }
.cfg__step.is-bad .cfg-l { border-color: #9E1B32; }
.cfg-l__obj { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--paper); }
.cfg-l__plate { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--white); padding: 12%; }
.cfg-l__pic { display: block; width: min(100%, calc(var(--w) * 1px / var(--dpr))); aspect-ratio: var(--ar); }
.cfg-l__cap { font-size: 13px; line-height: 1.35; color: var(--mut); text-align: center; }
.cfg-l__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 48px 18px 16px; align-self: center; }
.cfg-l__eb { margin-bottom: 4px; }
.cfg-l__t { font-weight: 300; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.1; color: var(--ink); }
.cfg-l__sub { font-size: 15px; color: var(--mut); }
.cfg-l__d { font-size: 16px; line-height: 1.5; color: var(--tx); margin-top: 8px; }
.cfg-c--line { grid-template-columns: 116px minmax(0, 1fr); }
@media (min-width: 700px) {
  .cfg__lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cfg-l { grid-template-columns: minmax(0, 1fr); }
  .cfg-l__obj { padding: clamp(20px, 3vw, 40px); }
  .cfg-l__plate { width: min(100%, 300px); }
  .cfg-l__body { padding: 20px 24px 24px; align-self: start; }
  .cfg__lines .cfg-c--line { grid-column: 1 / -1; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: none; }
  .cfg__lines .cfg-c--line .cfg-c__ico { aspect-ratio: auto; }
  .cfg__lines .cfg-c--line .cfg-c__body { align-self: center; }
}
@media (min-width: 1000px) {
  .cfg-l { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .cfg-l__obj { padding: 28px; }
  .cfg-l__body { align-self: center; padding: 24px 48px 24px 28px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .cfg-l { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .cfg-l__plate { width: min(100%, 150px); }
}

/* ------------------------------------------------------------ suprafața și datele de contact */
.cfg__area { margin-top: 28px; max-width: 360px; }
.cfg__area-in { position: relative; }
.cfg__area input { width: 100%; height: 56px; padding: 0 56px 0 16px; font: 300 22px var(--f); color: var(--ink); background: var(--white); border: 1px solid var(--hair-2); border-radius: var(--r); -moz-appearance: textfield; appearance: textfield; }
.cfg__area input::-webkit-outer-spin-button, .cfg__area input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg__area input:focus-visible, .hm-fld input[type="email"]:focus-visible { outline: 2px solid var(--vio-7); outline-offset: 1px; border-color: var(--vio-7); }
.cfg__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--mut); font-size: 17px; }
.cfg__hint { font-size: 14px; line-height: 1.45; color: var(--mut); margin-top: 6px; }
.hm-fld input[type="email"] { width: 100%; height: 56px; padding: 0 16px; font: 300 18px var(--f); color: var(--ink); background: var(--white); border: 1px solid var(--hair-2); border-radius: var(--r); }
.hm-fld.is-bad input { border-color: #9E1B32 !important; }
.cfg__opt { color: var(--mut); font-size: 14px; }
.cfg__fm { margin-top: 24px; max-width: 880px; }
.cfg__grid { display: grid; gap: 20px; }
.cfg__role { grid-column: 1 / -1; }
.cfg__consent { margin-top: 20px; }
.cfg__consent a { color: var(--tx); }
.cfg__check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--tx); cursor: pointer; }
.cfg__check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--plum-7); }
.cfg__nojs-send { width: 100%; margin-top: 12px; }
@media (min-width: 700px) { .cfg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }

/* ------------------------------------------------------------ bara configuratorului: progresul, Înapoi, Continuă */
.cfg__bar { display: grid; gap: 10px; margin-top: 28px; padding: 12px 0; background: var(--white); border-top: 1px solid var(--hair); }
.cfg__prog { display: flex; align-items: center; gap: 12px; }
.cfg__count { min-width: 44px; font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--plum-7); font-variant-numeric: tabular-nums; }
.cfg__segs { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.cfg__seg { height: 3px; background: var(--hair); }
.cfg__seg.is-done { background: var(--plum-5); }
.cfg__seg.is-now { background: var(--plum-7); }
.cfg__nav { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.cfg__back { background: var(--white); padding: 0 18px; }
.cfg__back[disabled] { opacity: .38; cursor: default; pointer-events: none; }
.cfg__next { width: 100%; }
@media (max-width: 999px) {
  html.cfg-ready .cfg__step { min-height: calc(100svh - var(--hdr) - 132px); }
  .cfg__bar { position: sticky; bottom: 0; z-index: 30; margin-inline: calc(var(--g) * -1); padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1000px) {
  .cfg__bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-top: 36px; padding: 20px 0 0; }
  .cfg__nav { grid-template-columns: auto auto; }
  .cfg__next { min-width: 260px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html.cfg-ready .cfg__step { min-height: 0; }
  .cfg__bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-block: 6px calc(6px + env(safe-area-inset-bottom)); }
  .cfg__nav .hm-btn { min-height: 46px; }
  .cfg__next { min-width: 220px; }
}

/* ------------------------------------------------------------ rezultatul */
.cfg-res { outline: none; }
.cfg-res[hidden] { display: none; }
.cfg-res__head { background: var(--plum-9); color: var(--white); padding: 32px var(--g) 28px; margin-inline: calc(var(--g) * -1); }
.cfg-res__head .hm-label { color: rgba(255, 255, 255, .78); margin-bottom: 8px; }
.cfg-res__head :focus-visible { outline-color: var(--white); }
.cfg-res__head .ph { background: rgba(255, 255, 255, .12); }
.cfg-res__t { font-weight: 300; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.15; color: var(--white); }
.cfg-res__price { margin-top: 22px; }
.cfg-res__n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em; font-weight: 300; font-size: clamp(46px, 8.4vw, 128px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--white); }
.cfg-res__dash { color: rgba(255, 255, 255, .6); }
.cfg-res__u { margin-top: 10px; font-size: clamp(18px, 1.4vw, 22px); color: rgba(255, 255, 255, .86); }
.cfg-res__meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; color: rgba(255, 255, 255, .8); }
.cfg-res__meta b { font-weight: 500; color: var(--white); }
.cfg-res__scope { margin-top: 8px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 70ch; }
.cfg-res__consult { margin-top: 18px; font-weight: 300; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.15; color: var(--white); max-width: 26ch; }
.cfg-res__var { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 76ch; }
.cfg-res__status { margin-top: 20px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.cfg-res__status:empty { display: none; }
.cfg-res__status.is-ok { color: var(--white); }
.cfg-res__retry { background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--white); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; font: inherit; }
.cfg-res__tools { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 8px; }
.cfg-res__tools .hm-btn--link { background: none; border: 0; color: var(--white); gap: 10px; font-size: 15px; }
@media (min-width: 700px) { .cfg-res__head { margin-inline: 0; padding: clamp(36px, 4.4vw, 72px); } }

.cfg-res__body { display: grid; gap: 40px; padding: clamp(40px, 5vw, 80px) 0; }
.cfg-res__blk .hm-h3 { margin-bottom: 14px; }
.cfg-def, .cfg-sum { border-top: 1px solid var(--hair); }
.cfg-def li, .cfg-sum li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.cfg-def__k, .cfg-sum__k { color: var(--tx); font-size: 16px; min-width: 0; }
.cfg-def__v { color: var(--ink); font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-def__v--txt, .cfg-sum__v { white-space: normal; text-align: right; color: var(--mut); font-size: 15px; max-width: 58%; }
.cfg-sum__v { color: var(--ink); font-size: 16px; }
.cfg-def__note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mut); }
.cfg-res__blk--wide { display: grid; gap: 28px; }
.cfg-res__nota { font-size: 15px; line-height: 1.5; color: var(--mut); max-width: 82ch; }
@media (min-width: 1000px) {
  .cfg-res__body { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 96px); row-gap: 56px; }
  .cfg-res__blk--wide { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 96px); }
  .cfg-res__nota { grid-column: 1 / -1; }
}

/* liste cu bifă (în rezultat și în banda „Ce cuprinde estimarea”) */
.cfg-pts { display: grid; gap: 0; }
.cfg-pts li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 10px 0; font-size: 16px; line-height: 1.5; color: var(--s-tx); }
.cfg-pts svg { color: var(--s-acc); margin-top: 3px; }
.cfg-pts--no svg { color: var(--s-mut); }

/* pasul următor: consultația, pe hârtie, pe toată lățimea */
.cfg-res__next { background: var(--paper); margin-inline: calc(var(--g) * -1); padding: clamp(48px, 6vw, 96px) var(--g); border-top: 1px solid var(--hair); }
.cfg-res__next-in { display: grid; gap: 32px; }
.cfg-res__next-t { font-size: clamp(32px, 3.6vw, 58px); }
.cfg-res__next .hm-act { margin-top: 28px; }
.cfg-res__next .hm-steps { margin-top: 0; }
.cfg-res__next .hm-btn--line { background: var(--white); }
@media (min-width: 1000px) {
  .cfg-res__next-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
}

/* ------------------------------------------------------------ banda „Ce cuprinde estimarea” (în rezultat ar fi repetată) */
.cfg-res-on .cfg-inc { display: none; }
.cfg-inc__cols { display: grid; gap: 32px; }
.cfg-inc__cols .hm-h3 { margin-bottom: 10px; }
.cfg-inc__cols .cfg-pts { border-top: 1px solid var(--s-hair); padding-top: 6px; }
@media (min-width: 900px) { .cfg-inc__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 96px); } }

/* ------------------------------------------------------------ tipărire: numai estimarea */
@media print {
  .hm-hdr, .hm-foot, .hm-bar, .hm-go, .cfg-inc, .cfg-head, .cfg-res__tools, .cfg-res__next .hm-act, .hm-skip { display: none !important; }
  .cfg-res__head { background: none; color: #000; padding: 0; margin: 0; }
  .cfg-res__head *, .cfg-res__n, .cfg-res__t { color: #000 !important; }
  .cfg-res__next { background: none; margin: 0; padding: 24px 0 0; }
}
