/* =========================================================
   Ukázka generátoru nabídky — vizuální vrstva
   Dark "midnight glass": aurora gradienty, skleněné panely,
   elektrická violet→cyan a limetkový akcent na částky.

   Rozvržení stejné jako u ostrého nástroje (web-alarm-tool):
   formulář vlevo, výsledky vpravo, tři varianty vedle sebe.
   ========================================================= */

:root {
  /* plochy */
  --bg: #07070b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* text */
  --text: #f2f2f5;
  --muted: #9d9dae;
  --faint: #8b8b9d;

  /* akcenty */
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --lime: #c8f751;
  --danger: #ff8080;
  --grad: linear-gradient(115deg, #7c5cff 0%, #5b8bff 45%, #22d3ee 100%);

  /* geometrie */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ring: 0 0 0 3px rgba(124, 92, 255, 0.28);

  color-scheme: dark;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
.hidden { display: none !important; }

::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

/* ---------- Pozadí ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.orb { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: 0.5; }

.orb-1 {
  width: 620px; height: 620px; top: -280px; left: -160px;
  background: radial-gradient(circle, #7c5cff 0%, rgba(124, 92, 255, 0) 70%);
  animation: drift-a 24s ease-in-out infinite;
}
.orb-2 {
  width: 540px; height: 540px; top: -160px; right: -200px;
  background: radial-gradient(circle, #22d3ee 0%, rgba(34, 211, 238, 0) 70%);
  opacity: 0.38;
  animation: drift-b 30s ease-in-out infinite;
}
.orb-3 {
  width: 700px; height: 700px; top: 46%; left: 40%;
  background: radial-gradient(circle, #3b2a8c 0%, rgba(59, 42, 140, 0) 70%);
  opacity: 0.55;
  animation: drift-a 36s ease-in-out infinite reverse;
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
}

.grain {
  position: absolute; inset: -50%; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(60px, 50px, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); }
  50%      { transform: translate3d(-70px, 40px, 0) scale(1); }
}

.noscript-note {
  max-width: 1192px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 128, 128, 0.35); border-radius: var(--r-md);
  background: rgba(255, 128, 128, 0.1);
  color: #ffd9d9; font-size: 0.88rem; line-height: 1.55;
}

/* ---------- Hero ---------- */

.hero { padding: 76px 0 40px; }

.hero-inner,
.app-main,
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 7px 15px 7px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.78rem; font-weight: 500; color: #cfcfe0;
}

.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 247, 81, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(200, 247, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 247, 81, 0); }
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700; line-height: 1.07; letter-spacing: -0.035em;
  margin: 0 0 18px; max-width: 18ch; text-wrap: balance;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lead {
  color: #b8b8c8;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 640px; margin: 0;
}

.hero .lead strong { color: #e6e6f0; font-weight: 600; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 24px 0 0; padding: 0;
}

.hero-chips li {
  position: relative; padding: 6px 14px 6px 28px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem; color: #c6c6d6;
}

.hero-chips li::before {
  content: ""; position: absolute; left: 12px; top: 50%;
  width: 8px; height: 5px;
  border-left: 1.6px solid var(--lime); border-bottom: 1.6px solid var(--lime);
  transform: translateY(-65%) rotate(-45deg);
}

/* ---------- Dvousloupcový layout ---------- */

.app-main {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.07) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  padding: 30px;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Výsledky zůstanou na očích, i když se dole vyplňuje dlouhý formulář. */
.results-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.results-panel::-webkit-scrollbar { width: 10px; }
.results-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }

.step-badge {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad); color: #fff;
  font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.9);
}

.panel h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin: 0;
}

.card-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--faint); }

.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  margin: 28px 0 12px;
}

.section-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-label:first-of-type { margin-top: 0; }

.opt-tag {
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--faint);
  font-size: 0.62rem; letter-spacing: 0.06em;
}

.field-hint {
  margin: -4px 0 12px;
  font-size: 0.8rem; line-height: 1.5; color: var(--faint);
}

/* ---------- Pole formuláře ---------- */

.field { margin-bottom: 20px; }

.field > label,
.field-label {
  display: block;
  font-weight: 500; font-size: 0.88rem; color: #dcdce8;
  margin-bottom: 9px;
}

.field input[type="number"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  font: inherit; font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.field input::placeholder { color: #5d5d6e; }
.field input:hover { border-color: var(--border-strong); }

.field input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.75);
  background: rgba(124, 92, 255, 0.07);
  box-shadow: var(--ring);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 .field,
.grid-3 .field { margin-bottom: 12px; }

.req { color: var(--violet); font-weight: 700; }

.hint { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--faint); }
.hint-span { margin: 0 0 20px; }

.input-unit { position: relative; }
.input-unit input { padding-right: 44px; }

.input-unit .unit {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; color: var(--faint); pointer-events: none;
}

/* ---------- Dlaždice typu objektu ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 9px; }

.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px 13px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer; text-align: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.tile input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.tile svg {
  width: 24px; height: 24px;
  fill: none; stroke: #b0b0c4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.18s, transform 0.18s;
}

.tile span { font-size: 0.79rem; font-weight: 500; color: #c3c3d4; line-height: 1.25; transition: color 0.18s; }

.tile:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }

.tile:has(input:checked) {
  border-color: rgba(124, 92, 255, 0.85);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.08));
  box-shadow: 0 10px 30px -14px rgba(124, 92, 255, 0.9);
}

.tile:has(input:checked) svg { stroke: #fff; transform: translateY(-1px); }
.tile:has(input:checked) span { color: #fff; }
.tile:has(input:focus-visible) { box-shadow: var(--ring); }

/* ---------- Přepínač ---------- */

.switch-row {
  display: flex !important; align-items: center; gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer; margin-bottom: 0 !important;
  transition: border-color 0.18s, background 0.18s;
}

.switch-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.switch {
  flex: none; position: relative; width: 46px; height: 27px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.11); border: 1px solid var(--border);
  transition: background 0.22s, border-color 0.22s;
}

.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%; background: #e8e8f0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s;
}

.switch-row input:checked + .switch { background: var(--grad); border-color: transparent; }
.switch-row input:checked + .switch::after { transform: translateX(19px); background: #fff; }
.switch-row input:focus-visible + .switch { box-shadow: var(--ring); }

.switch-text strong { display: block; font-size: 0.9rem; font-weight: 500; color: #e6e6f0; }
.switch-text small { display: block; font-size: 0.78rem; color: var(--faint); }

/* ---------- Nahrávání fotek ---------- */

.photo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%; padding: 24px 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.16); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  font: inherit; color: inherit; cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.photo-drop:hover {
  border-color: rgba(124, 92, 255, 0.7);
  background: rgba(124, 92, 255, 0.06);
  transform: translateY(-2px);
}

.photo-drop svg {
  width: 24px; height: 24px; margin-bottom: 6px;
  fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.photo-drop-text { font-size: 0.9rem; font-weight: 500; color: #e2e2ee; }
.photo-drop-sub { font-size: 0.77rem; color: var(--faint); }

.photo-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.pp-track {
  flex: 1; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.09); overflow: hidden;
}

.pp-fill { height: 100%; width: 0; background: var(--grad); transition: width 0.25s ease; }
.pp-text { font-size: 0.75rem; color: var(--faint); white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; margin-top: 12px; }

.ph { position: relative; margin: 0; }

.ph img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.9);
  display: block;
}

.ph-rm {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(8, 8, 12, 0.82); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.18s, transform 0.18s;
}

.ph-rm:hover { background: var(--danger); color: #1a0505; transform: scale(1.08); }

.ph figcaption {
  margin-top: 4px; font-size: 0.66rem; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Namluvená obhlídka ---------- */

.voice-box {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  padding: 15px 17px;
}

.voice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
}

.voice-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font: inherit; font-size: 0.87rem; font-weight: 500; color: var(--text);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.voice-btn:hover { background: rgba(255, 255, 255, 0.13); }

.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger);
  transition: background 0.2s;
}

.voice-btn.is-rec { border-color: rgba(255, 128, 128, 0.6); background: rgba(255, 128, 128, 0.12); }
.voice-btn.is-rec .rec-dot { animation: blink 1.1s ease-in-out infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.voice-timer {
  justify-self: end;
  font-family: "Space Grotesk", sans-serif; font-size: 0.95rem;
  font-variant-numeric: tabular-nums; color: #d6d6e4;
}

.voice-upload {
  grid-column: 1 / -1; justify-self: start;
  background: none; border: none; padding: 0;
  font: inherit; font-size: 0.83rem; color: var(--cyan);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.voice-upload:hover { color: #7ce9fb; }

.voice-hint { margin-top: 9px; font-size: 0.77rem; line-height: 1.5; color: var(--faint); }
.voice-hint.is-err { color: var(--danger); }

.voice-file {
  margin-top: 11px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.83rem;
}

.af-row { display: flex; align-items: center; gap: 10px; }

.af-player {
  display: block; width: 100%; height: 34px;
  margin-top: 9px;
}

.af-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e2e2ee; }
.af-meta { color: var(--faint); font-size: 0.76rem; white-space: nowrap; }

.af-rm {
  width: 22px; height: 22px; flex: none;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09); color: var(--faint);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.18s, color 0.18s;
}

.af-rm:hover { background: var(--danger); color: #1a0505; }

/* ---------- Tlačítka ---------- */

.btn-primary,
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: none; border-radius: var(--r-md);
  padding: 16px 24px;
  font: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s, filter 0.2s;
}

.btn-primary {
  position: relative; margin-top: 18px;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px -14px rgba(124, 92, 255, 0.95);
  overflow: hidden;
}

.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(124, 92, 255, 1); }
.btn-primary:hover:not(:disabled)::before { transform: translateX(120%); }

.btn-primary:disabled { opacity: 0.65; cursor: progress; }

.btn-primary svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}

.btn-primary:hover:not(:disabled) svg { transform: translateX(3px); }

.btn-secondary {
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  margin-top: 6px;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn-primary:active, .btn-secondary:active { transform: translateY(0); }

.btn-link {
  display: block; width: 100%;
  background: none; border: none; color: var(--faint);
  font: inherit; font-size: 0.87rem;
  padding: 14px 0 2px; cursor: pointer;
  transition: color 0.18s;
}

.btn-link:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.form-err {
  margin-top: 14px;
  font-size: 0.85rem; line-height: 1.5; color: var(--danger);
}

.form-err:empty { margin-top: 0; }

/* ---------- Prázdný stav výsledků ---------- */

.results-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 420px;
  padding: 40px 24px;
  color: var(--faint);
}

.empty-icon {
  width: 62px; height: 62px; margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.empty-icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.results-empty p { margin: 0; font-size: 0.93rem; line-height: 1.65; max-width: 40ch; }
.results-empty strong { color: #d8d8e6; font-weight: 600; }

/* ---------- Tři varianty ---------- */

.ai-estimate {
  font-size: 0.97rem; line-height: 1.55; color: #d3d3e2;
  margin: 0 0 20px; padding: 16px 18px;
  border: 1px solid rgba(124, 92, 255, 0.28); border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(34, 211, 238, 0.05));
}

.ai-estimate strong {
  font-family: "Space Grotesk", sans-serif; font-size: 1.1em; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pkg {
  display: flex; flex-direction: column;
  padding: 20px 18px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.pkg:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }

.pkg.is-rec {
  border-color: rgba(124, 92, 255, 0.55);
  background: linear-gradient(170deg, rgba(124, 92, 255, 0.14), rgba(34, 211, 238, 0.04));
  box-shadow: 0 16px 40px -22px rgba(124, 92, 255, 0.95);
}

.pkg-head { margin-bottom: 14px; }

.pkg-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pkg-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: #f0f0f7;
}

.pkg-badge {
  padding: 2px 9px; border-radius: 999px;
  background: rgba(200, 247, 81, 0.14); border: 1px solid rgba(200, 247, 81, 0.3);
  color: var(--lime);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.pkg-sub { margin: 4px 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--faint); }

.pkg-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--lime); font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.pkg-count {
  margin-top: 2px;
  font-size: 0.83rem; color: #c3c3d4; font-weight: 500;
}

.pkg-note {
  margin: 12px 0 0;
  font-size: 0.79rem; line-height: 1.5; color: var(--faint);
  flex: 1;
}

.pkg-toggle {
  margin-top: 14px; padding: 11px 0 0;
  border: none; border-top: 1px solid var(--border);
  background: none; width: 100%;
  font: inherit; font-size: 0.79rem; font-weight: 500; color: var(--cyan);
  cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.18s;
}

.pkg-toggle::after {
  content: ""; width: 6px; height: 6px; margin-left: auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.pkg-toggle.is-open::after { transform: rotate(-135deg) translateY(1px); }
.pkg-toggle:hover { color: #7ce9fb; }

.pkg.is-open { border-color: rgba(34, 211, 238, 0.6); }

/* Rozpis stojí pod mřížkou přes celou šířku — v úzkém sloupci karty se
   „Základní instalace — Rodinný dům" lámalo na tři řádky. */
.pkg-detail-panel {
  margin-top: 14px; padding: 18px 20px;
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: var(--r-lg);
  background: rgba(34, 211, 238, 0.045);
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pdp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }

.pdp-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem; font-weight: 600; letter-spacing: -0.02em; color: #eaeaf4;
}

.pdp-close {
  margin-left: auto; width: 26px; height: 26px; flex: none;
  border: 1px solid var(--border); border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); color: var(--faint);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.18s, color 0.18s;
}

.pdp-close:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }

.pdp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; }
.pdp-cols > div { min-width: 0; }

@media (max-width: 760px) {
  .pdp-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.sub-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--faint); font-weight: 600;
  margin: 16px 0 8px;
}

.sub-heading::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: #c9c9d8;
}

.line span:last-child {
  font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.line-total {
  border-bottom: none; padding-top: 12px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}

.line-total span:last-child { color: var(--lime); }

.placement-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start;
  border-bottom: none; padding: 7px 0;
}

.placement-line::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 16 5l1.6 5L3.6 14.5 2 9.5Z'/%3E%3Cpath d='M7 13v4a2 2 0 0 0 2 2h1'/%3E%3Cpath d='M19.5 7.5 22 8.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 16 5l1.6 5L3.6 14.5 2 9.5Z'/%3E%3Cpath d='M7 13v4a2 2 0 0 0 2 2h1'/%3E%3Cpath d='M19.5 7.5 22 8.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.placement-line span {
  font-weight: 500; color: #e4e4ee; font-size: 0.81rem; line-height: 1.4;
  min-width: 0; overflow-wrap: anywhere;
}

.placement-line small {
  display: inline-block; margin-top: 2px;
  color: var(--faint); font-weight: 400; font-size: 0.74rem; line-height: 1.45;
}

/* ---------- Patička výsledků ---------- */

.disclaimer {
  font-size: 0.81rem; line-height: 1.6; color: var(--faint);
  border: 1px solid var(--border); border-left: 2px solid rgba(124, 92, 255, 0.55);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  padding: 14px 16px; margin: 22px 0 18px;
}

.confirm {
  border: 1px solid rgba(200, 247, 81, 0.3); border-radius: var(--r-md);
  background: rgba(200, 247, 81, 0.08);
  padding: 14px 16px; margin-bottom: 12px;
  font-size: 0.9rem; color: #e6f4c8;
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm p { margin: 0; }
.confirm strong { color: #f0ffd4; }

/* ---------- Patička ---------- */

.site-footer {
  position: relative;
  padding: 32px 0 60px;
  color: var(--faint); font-size: 0.85rem; line-height: 1.65; text-align: center;
}

.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1200px, 88%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.site-footer strong { color: #cfcfdd; font-weight: 600; }

.site-footer a {
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.18s, color 0.18s;
}

.site-footer a:hover { color: #7ce9fb; border-color: #7ce9fb; }

/* ---------- Responsivita ---------- */

@media (max-width: 980px) {
  .app-main { grid-template-columns: minmax(0, 1fr); }
  .results-panel { position: static; max-height: none; overflow: visible; }
  .results-empty { min-height: 260px; }
}

@media (max-width: 620px) {
  .hero { padding: 54px 0 30px; }
  .hero .eyebrow { font-size: 0.72rem; padding: 6px 13px 6px 10px; }
  .hero-inner, .app-main, .wrap { padding: 0 18px; }
  .panel { padding: 22px 18px; border-radius: var(--r-lg); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 .field:first-child { grid-column: span 2; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Záloha pro prohlížeče bez :has() ---------- */

@supports not selector(:has(*)) {
  .tile input:checked ~ span { color: #fff; text-decoration: underline; }
}

/* ---------- Omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
