/* ═══════════════════════════════════════════════════════════
   AKADÉMIA VÝŽIVY · Cookie lišta a nastavenia
   Zdieľané všetkými podstránkami.
   ═══════════════════════════════════════════════════════════ */

.ck-bar, .ck-modal {
  --ck-cream: #F6F0E9;
  --ck-sand: #E4DCCE;
  --ck-espresso: #2C2421;
  --ck-espresso-deep: #201A18;
  --ck-mocha: #7D6C5F;
  --ck-umber: #45413C;
  --ck-gold: #C4A882;
  --ck-gold-bright: #D9BE93;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.ck-bar *, .ck-modal * { box-sizing: border-box; }

/* ─────── Lišta ─────── */

.ck-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--ck-espresso);
  color: rgba(246, 240, 233, .85);
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 -8px 32px -12px rgba(44, 36, 33, .5);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ck-bar.ck-in { transform: translateY(0); }

.ck-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.ck-bar-text {
  flex: 1 1 360px;
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
}
.ck-bar-text strong { color: var(--ck-cream); font-weight: 700; }
.ck-bar-text a {
  color: var(--ck-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 168, 130, .45);
  transition: border-color .25s ease;
}
.ck-bar-text a:hover { border-bottom-color: var(--ck-gold); }

.ck-bar-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

/* ─────── Tlačidlá ─────── */

.ck-btn {
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease,
              border-color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.ck-btn:hover { transform: translateY(-2px); }

.ck-btn--gold {
  background: var(--ck-gold);
  color: var(--ck-espresso);
}
.ck-btn--gold:hover { background: var(--ck-gold-bright); }

.ck-btn--ghost {
  background: transparent;
  color: rgba(246, 240, 233, .9);
  border-color: rgba(246, 240, 233, .3);
}
.ck-btn--ghost:hover {
  background: rgba(246, 240, 233, .1);
  border-color: rgba(246, 240, 233, .55);
}

.ck-btn--link {
  background: none;
  border: none;
  padding: .85rem .4rem;
  color: rgba(246, 240, 233, .65);
  text-transform: none;
  letter-spacing: .04em;
  font-size: .78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ck-btn--link:hover { color: var(--ck-cream); transform: none; }

@media (max-width: 720px) {
  .ck-bar-actions { width: 100%; }
  .ck-bar-actions .ck-btn--gold,
  .ck-bar-actions .ck-btn--ghost { flex: 1 1 auto; text-align: center; justify-content: center; }
  .ck-bar-actions .ck-btn--link { flex: 1 1 100%; text-align: center; }
}

/* ─────── Modálne nastavenia ─────── */

.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(32, 26, 24, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ck-modal.ck-open { display: flex; }

.ck-modal-card {
  background: var(--ck-cream);
  color: var(--ck-mocha);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: 0 24px 64px -16px rgba(44, 36, 33, .5);
}

.ck-modal-card h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--ck-umber);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 .7rem;
}
.ck-modal-lead {
  font-size: .9rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.ck-modal-lead a { color: var(--ck-gold); font-weight: 600; }

.ck-group {
  border-top: 1px solid rgba(125, 108, 95, .22);
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem 1.2rem;
  align-items: start;
}
.ck-group:last-of-type { border-bottom: 1px solid rgba(125, 108, 95, .22); }

.ck-group-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ck-umber);
  margin: 0;
}
.ck-group-desc {
  grid-column: 1 / -1;
  font-size: .82rem;
  line-height: 1.6;
  margin: 0;
}
.ck-group-fixed {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ck-gold);
  font-weight: 600;
  align-self: center;
}

/* prepínač */
.ck-switch {
  position: relative;
  width: 44px; height: 24px;
  flex: 0 0 auto;
  align-self: center;
}
.ck-switch input {
  position: absolute; inset: 0;
  opacity: 0; margin: 0; cursor: pointer; z-index: 1;
}
.ck-switch span {
  position: absolute; inset: 0;
  background: rgba(125, 108, 95, .35);
  border-radius: 999px;
  transition: background .3s ease;
  pointer-events: none;
}
.ck-switch span::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--ck-cream);
  border-radius: 50%;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 1px 3px rgba(44, 36, 33, .25);
}
.ck-switch input:checked + span { background: var(--ck-gold); }
.ck-switch input:checked + span::before { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--ck-gold); outline-offset: 2px; }

.ck-modal-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.ck-modal-actions .ck-btn { flex: 1 1 auto; }
.ck-modal-actions .ck-btn--gold { background: var(--ck-espresso); color: var(--ck-cream); }
.ck-modal-actions .ck-btn--gold:hover { background: var(--ck-espresso-deep); }
.ck-modal-actions .ck-btn--ghost {
  color: var(--ck-umber);
  border-color: rgba(69, 65, 60, .3);
}
.ck-modal-actions .ck-btn--ghost:hover {
  background: var(--ck-umber);
  color: var(--ck-cream);
  border-color: var(--ck-umber);
}

/* odkaz v pätičke */
.ck-footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .25s ease;
}
.ck-footer-link:hover { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .ck-bar, .ck-btn, .ck-switch span, .ck-switch span::before { transition: none; }
}
