/* ===========================================================================
   QRfotky — lišta souhlasu s cookies
   Plovoucí karta vlevo dole, na mobilu spodní sheet. Drží brand modrou #2056D6.
   =========================================================================== */

/* SPODNÍ PRUH (4. 9. 2026)
   Historie tohohle prvku ve zkratce, ať to někdo zas nepředělá dokola:
   1) lištička vlevo dole — skoro nikdo ji neodklikl a měla
      `backdrop-filter: blur(14px)`, takže při scrollování rozmazávala
      skládané sekce na homepage (šmouha přes celý efekt);
   2) modální okno uprostřed — souhlas si vynutilo, ale bylo násilné;
   3) tohle: pruh přes celou šířku dole. Standardní řešení — je vidět
      podstatně líp než rohová lištička, ale nic neblokuje a stránkou se
      dá normálně scrollovat.
   Rozostření je pryč natrvalo: pozadí je plná barva, takže není co
   překreslovat a efekt na homepage zůstává ostrý. */
.qrfc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  padding: 0 16px 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .26s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.qrfc--in { opacity: 1; transform: none; }
.qrfc__card { pointer-events: auto; }

.qrfc__card {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .1);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -10px rgba(16, 24, 40, .2);
}

/* Nadpis v pruhu nechceme — zabírá řádek a nic nepřidá. Sušenka stačí. */
.qrfc__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sušenka — jemné zhoupnutí při příchodu, ať pruh padne do oka.
   Jen jednou, neposkakuje pořád: to by po chvíli obtěžovalo. */
.qrfc__cookie {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #FDF6EC;
  border: 1px solid #F0E0C8;
}
.qrfc--in .qrfc__cookie svg { animation: qrfcSusenka .85s cubic-bezier(.34,1.56,.64,1) .25s both; }
@keyframes qrfcSusenka {
  0%   { transform: rotate(-24deg) scale(.55); opacity: 0; }
  55%  { transform: rotate(9deg)   scale(1.08); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@media (max-width: 860px) { .qrfc__cookie { width: 36px; height: 36px; } }

/* -- text (jeden řádek, minimalisticky) -- */
.qrfc__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5B6472;
  letter-spacing: -0.002em;
}
.qrfc__title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14181F;
}
.qrfc__text strong { color: #14181F; font-weight: 700; }
.qrfc__text a { color: #2056D6; text-decoration: none; font-weight: 600; }
.qrfc__text a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* -- rozbalené nastavení -- */
.qrfc__panel {
  border-top: 1px solid #EEF0F4;
  margin: 0 0 16px;
  padding-top: 4px;
}
.qrfc__panel[hidden] { display: none; }

.qrfc__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F5F8;
}
.qrfc__row:last-child { border-bottom: 0; }

.qrfc__row-txt { flex: 1 1 auto; min-width: 0; }
.qrfc__row-txt strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: #14181F;
  margin-bottom: 2px;
}
.qrfc__row-txt span {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6B7280;
}

.qrfc__lock {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #5B6472;
  background: #F1F3F7;
  border-radius: 999px;
  padding: 5px 11px;
  margin-top: 2px;
}

/* -- přepínač -- */
.qrfc__switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  margin-top: 2px;
  cursor: pointer;
}
.qrfc__switch input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.qrfc__slider {
  position: absolute;
  inset: 0;
  background: #CFD5DF;
  border-radius: 999px;
  transition: background .2s ease;
  pointer-events: none;
}
.qrfc__slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.qrfc__switch input:checked + .qrfc__slider { background: #2056D6; }
.qrfc__switch input:checked + .qrfc__slider::after { transform: translateX(18px); }
.qrfc__switch input:focus-visible + .qrfc__slider { outline: 2px solid #2056D6; outline-offset: 3px; }

.qrfc__sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -- tlačítka -- */
.qrfc__actions {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qrfc__btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #F1F4F9;
  color: #22262E;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.qrfc__btn:hover { background: #E7ECF4; }
.qrfc__btn:active { transform: translateY(1px); }

.qrfc__btn--primary {
  background: #2056D6;
  color: #fff;
  box-shadow: 0 1px 2px rgba(32, 86, 214, .28);
}
.qrfc__btn--primary:hover { background: #173FA6; }

.qrfc__link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 8px;
  border: 0;
  background: none;
  color: #7A828E;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.qrfc__link:hover { color: #2056D6; }

.qrfc :focus-visible { outline: 2px solid #2056D6; outline-offset: 2px; border-radius: 8px; }

/* -- mobil: tlačítka pod sebou přes celou šířku -- */
@media (max-width: 860px) {
  .qrfc { padding: 0 10px 10px; }
  .qrfc__card { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
}
@media (max-width: 480px) {
  .qrfc__btn { flex: 1 1 100%; }
  .qrfc__link { flex: 1 1 100%; text-align: center; }
}

/* -- tmavý režim -- */
@media (prefers-color-scheme: dark) {
  .qrfc__title { color: #F3F5F8; }
  .qrfc__cookie { background: #2A231A; border-color: #3D3325; }
  .qrfc__card { background: #171A20; border-color: rgba(255, 255, 255, .08); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
  .qrfc__text { color: #A8B0BD; }
  .qrfc__text strong { color: #F3F5F8; }
  .qrfc__text a { color: #7FA6F5; }
  .qrfc__panel { border-top-color: #262B34; }
  .qrfc__row { border-bottom-color: #22262E; }
  .qrfc__row-txt strong { color: #F3F5F8; }
  .qrfc__row-txt span { color: #8A93A1; }
  .qrfc__lock { background: #22262E; color: #A8B0BD; }
  .qrfc__btn { background: #262B34; color: #E9ECF1; }
  .qrfc__btn:hover { background: #2F3542; }
  .qrfc__btn--primary { background: #2F63E0; color: #fff; }
  .qrfc__btn--primary:hover { background: #2453C4; }
  .qrfc__link { color: #A8B0BD; }
  .qrfc__slider { background: #3A4150; }
}

/* -- respekt k omezenému pohybu -- */
@media (prefers-reduced-motion: reduce) {
  .qrfc { transition: opacity .01ms; transform: none; }
  .qrfc__card { transition: none; }
  .qrfc--in .qrfc__cookie svg { animation: none; }
  .qrfc__slider::after, .qrfc__slider, .qrfc__btn { transition: none; }
}
