/* ==========================================================================
   Postavgril – redesign patičky
   Aktivní jen s třídou .pg-footer (přidá ji pg-footer.js), bez JS zůstává
   původní světlá patička. Tmavý podklad #01161e plynule navazuje na sekci
   recenzí (pg-reviews), dole doutnají uhlíky a stoupají jiskry.
   ========================================================================== */

.template-13 #footer.pg-footer {
  --pf-red: var(--color-primary, #cd3d2f);
  --pf-orange: #ff8a00;
  --pf-yellow: #ffc807;
  --pf-dark: #01161e;
  --pf-text: rgba(255, 255, 255, 0.92);
  --pf-muted: rgba(255, 255, 255, 0.62);
  --pf-line: rgba(255, 255, 255, 0.1);
  --pf-font: var(--template-font, "Source Sans 3"), sans-serif;
  --pf-font-head: var(--template-headings-font, "Exo 2"), sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  background-color: var(--pf-dark);
  background-image:
    radial-gradient(1100px 260px at 50% 100%, rgba(205, 61, 47, 0.30), transparent 70%),  /* uhlíky dole */
    radial-gradient(520px 160px at 50% 100%, rgba(255, 138, 0, 0.22), transparent 70%),
    linear-gradient(180deg, #01161e 0%, #021b25 60%, #031a22 100%);
  font-family: var(--pf-font);
  color: var(--pf-text);
}

/* žhavá linka nahoře (jako u recenzí) */
.template-13 #footer.pg-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(205, 61, 47, 0.6) 25%, rgba(255, 138, 0, 0.7) 50%, rgba(205, 61, 47, 0.6) 75%, transparent);
}
/* hned pod recenzemi: místo linky pokračuje jejich červená záře zleva dole */
/* hned pod recenzemi: zrcadlově pokračují jejich záře (na hraně se hodnoty
   potkají, takže přechod není vidět) */
.pg-reviews:not([hidden]) + #footer.pg-footer::before {
  height: 480px;
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(205, 61, 47, 0.42), transparent 65%),
    radial-gradient(600px 300px at 55% -20%, rgba(255, 200, 7, 0.10), transparent 70%);
  pointer-events: none;
}

.template-13 #footer.pg-footer .footer-rows,
.template-13 #footer.pg-footer .footer-bottom { position: relative; z-index: 1; }

.template-13 #footer.pg-footer .footer-rows {
  padding-top: 56px;
  padding-bottom: 24px;
}
.pg-reviews:not([hidden]) + #footer.pg-footer .footer-rows { padding-top: 8px; }

.pg-footer *,
.pg-footer *::before,
.pg-footer *::after { box-sizing: border-box; }

/* ---------- Kontaktní pruh ---------- */
.pg-footer__cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin: 0 0 56px;
  padding: 36px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(255, 138, 0, 0.16), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
/* tenký žhavý okraj dole */
.pg-footer__cta::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--pf-red), var(--pf-orange), var(--pf-red), transparent);
  opacity: .8;
}

.pg-footer__cta-main {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.pg-footer__flame {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--pf-orange), var(--pf-red) 70%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(205, 61, 47, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pg-footer__flame svg {
  width: 34px;
  height: 34px;
  transform-origin: 50% 90%;
  animation: pf-flicker 3.2s ease-in-out infinite;
}

.pg-footer__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--pf-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.template-13 .pg-footer .pg-footer__title {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--pf-font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.template-13 .pg-footer .pg-footer__title::after { content: none; }

.pg-footer__text {
  max-width: 560px;
  margin: 0;
  color: var(--pf-muted);
  font-size: 16px;
  line-height: 1.55;
}

.pg-footer__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.25;
}
.pg-footer__person strong { display: block; color: #fff; font-weight: 700; }
.pg-footer__person small { color: var(--pf-muted); font-size: 13px; }
.pg-footer__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 200, 7, 0.45);
  color: var(--pf-yellow);
  font-family: var(--pf-font-head);
  font-weight: 800;
  font-size: 14px;
}

.pg-footer__cta-actions {
  display: grid;
  gap: 12px;
  min-width: 290px;
}

.template-13 .pg-footer a.pg-footer__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--pf-font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease, color .3s ease;
}
.pg-footer__btn svg { flex: 0 0 auto; width: 24px; height: 24px; }
.pg-footer__btn small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--pf-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .8;
}

.template-13 .pg-footer a.pg-footer__btn--primary {
  background: var(--pf-red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(205, 61, 47, 0.4);
}
.template-13 .pg-footer a.pg-footer__btn--primary:hover {
  background: #fff;
  color: var(--pf-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.template-13 .pg-footer a.pg-footer__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 17px;
}
.template-13 .pg-footer a.pg-footer__btn--ghost:hover {
  border-color: rgba(255, 138, 0, 0.6);
  background: rgba(255, 138, 0, 0.08);
  color: #fff;
  transform: translateY(-2px);
}
.template-13 .pg-footer a.pg-footer__btn:focus-visible {
  outline: 2px solid var(--pf-yellow);
  outline-offset: 3px;
}

/* ---------- Sloupce ---------- */
/* kontakt je v pruhu nahoře – původní sloupec skrýt (JSON-LD v něm zůstává) */
.template-13 .pg-footer .custom-footer__contact { display: none; }

.template-13 .pg-footer .custom-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
}
.template-13 .pg-footer .custom-footer::before,
.template-13 .pg-footer .custom-footer::after { content: none; }
.template-13 .pg-footer .custom-footer > div {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}

.template-13 .pg-footer .custom-footer .pageElement__heading {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}
.template-13 .pg-footer .custom-footer .pageElement__heading::after {
  width: 28px;
  height: 2px;
  margin-top: 10px;
}

.template-13 .pg-footer .custom-footer ul { margin: 0; padding: 0; list-style: none; }
.template-13 .pg-footer .custom-footer li,
.template-13 .pg-footer .custom-footer .news-item-widget { margin: 0 0 10px; padding: 0; }
.template-13 .pg-footer .custom-footer li::before { content: none; }
.template-13 .pg-footer .custom-footer .newsItemWidget__heading { margin: 0; line-height: 1.4; }

.template-13 .pg-footer .custom-footer__articles a,
.template-13 .pg-footer .custom-footer__section2 a {
  color: var(--pf-muted);
  font-size: 16px;
}
.template-13 .pg-footer .custom-footer__articles a:hover,
.template-13 .pg-footer .custom-footer__section2 a:hover {
  color: #fff;
  padding-left: 4px;
}

/* známka u odkazu „Hodnocení obchodu“ */
.pg-footer__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  background: rgba(255, 200, 7, 0.12);
  color: var(--pf-yellow);
  font-size: 13px;
  font-weight: 700;
  vertical-align: 1px;
}
.pg-footer__rating svg { width: 12px; height: 12px; }

/* ---------- Přihlášení ---------- */
.template-13 .pg-footer .custom-footer > .custom-footer__login {
  padding: 24px;
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.template-13 .pg-footer .custom-footer__login form { width: 100%; max-width: 100%; border-radius: 0; }
.template-13 .pg-footer .custom-footer__login .form-group { margin-bottom: 12px; }
.template-13 .pg-footer .custom-footer__login .form-control {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.template-13 .pg-footer .custom-footer__login .form-control:focus {
  border-color: var(--pf-orange);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.18);
}
.template-13 .pg-footer .custom-footer__login .form-control:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 40px #0d2730 inset;
}
.template-13 .pg-footer .custom-footer__login label,
.template-13 .pg-footer .custom-footer__login label span { color: var(--pf-muted); }
.template-13 .pg-footer .custom-footer__login .btn-primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--pf-red);
  color: #fff;
  font-weight: 800;
  transition: background .3s ease, color .3s ease;
}
.template-13 .pg-footer .custom-footer__login .btn-primary:hover {
  background: #fff;
  color: var(--pf-dark);
}
.template-13 .pg-footer .custom-footer__login .alternative-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
}
.template-13 .pg-footer .custom-footer__login .alternative-links a {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--pf-muted);
  font-size: 14px;
}
.template-13 .pg-footer .custom-footer__login .alternative-links a:hover { color: #fff; }

/* ---------- Spodní lišta ---------- */
.template-13 .pg-footer .footer-bottom {
  border-top: 1px solid var(--pf-line);
  background: transparent;
  color: var(--pf-muted);
  font-size: 14px;
}
.template-13 .pg-footer .footer-bottom a { color: var(--pf-muted); }
.template-13 .pg-footer .footer-bottom a:hover { color: #fff; }
.template-13 .pg-footer .footer-bottom strong { color: #fff; }
.template-13 .pg-footer #signature img { filter: brightness(0) invert(1); opacity: .7; }

/* ---------- Jiskry ---------- */
.pg-footer__sparks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
}
.pg-footer__sparks span {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 6px 1px rgba(255, 138, 0, 0.8), 0 0 14px 3px rgba(205, 61, 47, 0.45);
  opacity: 0;
  animation: pf-rise var(--d) linear var(--delay) infinite;
}

@keyframes pf-rise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: .85; }
  60%  { opacity: .55; }
  100% { transform: translate3d(var(--drift), calc(var(--h) * -1), 0) scale(.3); opacity: 0; }
}
@keyframes pf-flicker {
  0%, 100% { transform: scale(1) rotate(0); }
  30%      { transform: scale(1.04, .97) rotate(-2deg); }
  60%      { transform: scale(.97, 1.04) rotate(1.5deg); }
}

/* ---------- Responzivita ---------- */
@media (max-width: 1199px) {
  .pg-footer__cta { padding: 32px; gap: 28px; }
  .template-13 .pg-footer .pg-footer__title { font-size: 25px; }
}
@media (max-width: 991px) {
  .pg-footer__cta { grid-template-columns: 1fr; }
  .pg-footer__cta-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .template-13 .pg-footer .custom-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .template-13 .pg-footer .custom-footer__login { grid-column: 1 / -1; }
  .template-13 .pg-footer .custom-footer__login form { max-width: 420px; }
}
@media (max-width: 767px) {
  .template-13 #footer.pg-footer .footer-rows { padding-top: 40px; }
  .pg-footer__cta { margin-bottom: 40px; padding: 26px 20px 28px; gap: 22px; }
  .pg-footer__cta::after { left: 20px; right: 20px; }
  .pg-footer__cta-main { flex-direction: column; gap: 16px; }
  .pg-footer__flame { width: 52px; height: 52px; border-radius: 16px; }
  .pg-footer__flame svg { width: 26px; height: 26px; }
  .template-13 .pg-footer .pg-footer__title { font-size: 23px; }
  .pg-footer__text { font-size: 15.5px; }
  .pg-footer__cta-actions { grid-template-columns: 1fr; }
  .template-13 .pg-footer a.pg-footer__btn { font-size: 18px; }
  .template-13 .pg-footer a.pg-footer__btn--ghost { font-size: 16px; }
  .template-13 .pg-footer .custom-footer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pg-footer__sparks { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-footer__sparks { display: none; }
  .pg-footer__flame svg { animation: none; }
  .template-13 .pg-footer a.pg-footer__btn:hover { transform: none; }
}
