/* =====================================================================
   CONFIGURATOR v5 — a logo-led sample product line + a one-minute inquiry (#konfigurator)
   ===================================================================== */
.cfg {
  --cfg-paper: #FBF8F2;
  position: relative; background: var(--oat-2); padding: clamp(96px, 10vw, 150px) 0 clamp(90px, 9vw, 140px);
}
.cfg ::selection { background: var(--brick); color: var(--cream); }

/* ---------- head ---------- */
.cfg__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px clamp(24px, 4vw, 70px); align-items: end; margin-bottom: clamp(36px, 4.6vw, 66px); }
.cfg__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cfg__head .t-lead { max-width: 30em; }
.cfg__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.cfg__facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--brick); transform: translateY(-1px) rotate(45deg); }
.cfg__facts b { color: var(--ink); font-weight: 600; }

/* ---------- grid ---------- */
.cfg__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: clamp(24px, 3.2vw, 56px); align-items: start; }
.cfg__stagecol { position: sticky; top: 88px; transition: top .7s var(--ease); }
@media (min-width: 901px) { html.nav-hidden .cfg__stagecol { top: 24px; } }

/* ---------- stage ---------- */
.cfg__stage { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 220px); width: 100%; border-radius: var(--radius); overflow: hidden; background: #D6C6AD; isolation: isolate; }
.cfg__shelf { position: absolute; inset: 0; }
.cfg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s var(--ease); }
.cfg__canvas.is-on { opacity: 1; }
/* "sample" banner: the most important message on the stage */
.cfg__banner { position: absolute; z-index: 3; top: 16px; left: 16px; right: 136px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px 10px 10px;
  border-radius: 14px; background: var(--brick); color: var(--cream); font-size: 14px; line-height: 1.35; box-shadow: 0 16px 34px -18px rgba(75, 14, 9, .8); }
.cfg__banner b { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--cream); color: var(--brick); font: 800 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.cfg__banner i { font-style: normal; font-weight: 700; }

/* round "v ceně" stamp, slowly turning */
.cfg__stamp { position: absolute; z-index: 3; top: 10px; right: 12px; width: 112px; height: 112px; filter: drop-shadow(0 12px 18px rgba(75, 14, 9, .35)); }
.cfg__stamp svg { width: 100%; height: 100%; overflow: visible; }
.cfg__stamp circle { fill: var(--gold); }
.cfg__stamp textPath { font: 800 8.4px var(--font); fill: var(--brick-deep); }
.cfg__stamp svg > text:first-of-type { animation: cfg-spin 22s linear infinite; transform-origin: 60px 60px; }
.cfg__stamp .c { font: 800 21px var(--font); font-stretch: 62%; fill: var(--brick-deep); letter-spacing: .02em; }
.cfg__stamp .s { font: 600 9.5px var(--font); fill: var(--brick-deep); }
@keyframes cfg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cfg__stamp svg > text:first-of-type { animation: none; } }

/* recipe captions under the containers (--x / --w set by configurator.js) */
.cfg__line { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; height: 44px; margin: 0; padding: 0; list-style: none; }
.cfg__line li { position: absolute; left: var(--x, 50%); bottom: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; min-width: 96px; padding: 7px 14px 8px;
  border-radius: 12px; background: rgba(251, 248, 242, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; white-space: nowrap; }
.cfg__line b { font-size: 13.5px; font-weight: 700; }
.cfg__line span { font-size: 11.5px; color: var(--ink-soft); }

.cfg__name { display: grid; gap: 8px; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--cfg-paper); box-shadow: inset 0 0 0 1px var(--line); }
.cfg__name span { font: 600 11px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.cfg__name small { margin-left: 6px; font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 12px; }
.cfg__name input { width: 100%; padding: 2px 0 6px; border: 0; border-bottom: 1.5px solid var(--line); background: none; font: 500 22px/1.2 var(--font); color: var(--ink); outline: none; transition: border-color .3s; }
.cfg__name input:focus { border-color: var(--brick); }

/* ---------- inquiry panel ---------- */
.cfg__panel { position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; background: var(--cfg-paper); box-shadow: 0 30px 60px -40px rgba(75, 14, 9, .45); }
.cfg-incl { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); }
.cfg-incl__k { margin: 0 0 10px; font: 800 22px/1 var(--font); font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em; color: var(--gold); }
.cfg-incl ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cfg-incl li { display: flex; gap: 10px; align-items: baseline; }
.cfg-incl li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-3px) rotate(-45deg); }
.cfg-row { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.cfg-row legend { margin-bottom: 9px; padding: 0; font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.cfg-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cfg-seg--lids, .cfg-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfg-seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfg-seg button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: #fff; color: var(--ink); text-align: left; box-shadow: inset 0 0 0 1px rgba(28, 20, 17, .13); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.cfg-seg button b { font-size: 14.5px; font-weight: 650; line-height: 1.15; }
.cfg-seg button small { font-size: 12px; color: var(--ink-mute); }
.cfg-seg button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cfg-seg button.is-on { background: var(--ink); color: var(--cream); box-shadow: none; }
.cfg-seg button.is-on small { color: rgba(246, 238, 226, .7); }
.cfg-seg--4 button, .cfg-seg--3 button { align-items: center; text-align: center; }
.cfg-seg--lids button { flex-direction: row; align-items: center; gap: 9px; }
.cfg-lid { flex: none; width: 22px; height: 12px; border-radius: 3px 3px 2px 2px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.cfg-lid--plast { background: repeating-linear-gradient(90deg, #F4F1EC 0 2px, #DDD8D0 2px 3px); }
.cfg-lid--stribro { background: linear-gradient(100deg, #8D939A, #E9ECEF 40%, #A3A9B0 60%, #D7DBDF); }
.cfg-lid--zlato { background: linear-gradient(100deg, #9C7634, #EBD08F 40%, #B98F45 60%, #E3C47F); }

.cfg-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 4px; }
.cfg-fld { display: grid; gap: 6px; }
.cfg-fld span { font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.cfg-fld small { font-weight: 500; letter-spacing: .02em; text-transform: none; }
.cfg-fld input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; font: 500 15.5px var(--font); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 20, 17, .16); outline: none; transition: box-shadow .3s; }
.cfg-fld input:focus { box-shadow: inset 0 0 0 2px var(--brick); }
.cfg-fld__err { font-style: normal; font-size: 12.5px; color: var(--brick); }
.cfg-sum { margin: 16px 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(146, 40, 26, .06); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.cfg-form__send { width: 100%; justify-content: center; }
.cfg-form__send:disabled { opacity: .6; pointer-events: none; }
.cfg-form__note { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-mute); }
.cfg-form__note b { color: var(--brick); }

.cfg-form.is-sent > :not(.cfg-done) { visibility: hidden; }
.cfg-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; border-radius: 22px; background: var(--cfg-paper); text-align: center; outline: none; }
.cfg-done[hidden] { display: none; }
.cfg-done__seal svg { width: 84px; height: 84px; fill: none; stroke: var(--brick); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cfg-done__t { margin: 0; font: 800 clamp(30px, 3vw, 40px)/.95 var(--font); font-stretch: 62%; text-transform: uppercase; }
.cfg-done__p { margin: 0 0 6px; max-width: 26em; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cfg__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
}
@media (max-width: 900px) {
  .cfg { padding-top: 76px; padding-bottom: 96px; }
  .cfg__stage { aspect-ratio: 1 / 1; max-height: none; width: auto; }
  .cfg__head, .cfg__grid { grid-template-columns: minmax(0, 1fr); }
  .cfg__stagecol { position: relative; top: 0; }
  .cfg__stage { margin: 0 calc(-1 * var(--pad)); border-radius: 0; }
  .cfg__banner { right: 104px; font-size: 13px; }
  .cfg__stamp { width: 88px; height: 88px; }
  .cfg__line { bottom: 10px; }
  .cfg__line li { min-width: 0; padding: 5px 9px 6px; }
  .cfg__line span { display: none; }
  .cfg__panel { margin-top: 18px; }
}
@media (max-width: 520px) {
  .cfg-seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-seg--lids button { flex-direction: column; align-items: center; gap: 6px; }
  .cfg-seg--3 button b { font-size: 13px; }
  .cfg-contact { grid-template-columns: 1fr; }
  .cfg__banner { top: 10px; left: 10px; right: 90px; padding: 8px 10px 8px 8px; font-size: 12px; gap: 8px; }
  .cfg__banner b { padding: 5px 7px; font-size: 11px; }
  .cfg__stamp { width: 76px; height: 76px; top: 8px; right: 8px; }
}
