/* TVUJORIGINAL.CZ — GLOBAL FOOTER V1.1 */

#to-global-footer,
#to-global-footer * {
  box-sizing: border-box;
}

#to-global-footer {
  position: relative;
  width: 100%;
  margin: 58px 0 0;
  padding: 0;
  background: #fff;
  color: #302820;
}

.to-global-footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e9dfd6;
  background: #fff;
  box-shadow: 0 12px 34px rgba(64, 49, 35, .06);
}

.to-global-footer__panel {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(234, 221, 207, .35), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fdfbf8 100%);
}

.to-global-footer__panel--finder {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  padding: 50px 48px 50px 36px;
}

.to-global-footer__panel--inspiration {
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: center;
  padding: 50px 24px 0 54px;
  border-left: 1px solid #e9dfd6;
}

.to-global-footer__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 232, 217, .92), rgba(249, 243, 236, .45) 66%, transparent 67%);
}

.to-global-footer__visual svg {
  width: 170px;
  height: 170px;
  fill: none;
  stroke: #7f674f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-global-footer__visual .to-global-footer__spark {
  stroke: #84ab09;
}

.to-global-footer__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.to-global-footer__kicker {
  display: block;
  margin-bottom: 14px;
  color: #a17e61;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#to-global-footer h2 {
  margin: 0;
  color: #2d251f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}

#to-global-footer p {
  max-width: 540px;
  margin: 24px 0 28px;
  color: #655b53;
  font-size: 16px;
  line-height: 1.65;
}

.to-global-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid #84ab09;
  color: #6f9405;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.to-global-footer__cta:hover,
.to-global-footer__cta:focus {
  gap: 17px;
  color: #587703;
  text-decoration: none;
}

.to-global-footer__originalka {
  position: relative;
  align-self: end;
  height: 100%;
  min-height: 360px;
}

.to-global-footer__originalka img {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 285px;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 12px 22px rgba(72, 52, 36, .10));
}

.to-global-footer__speech {
  position: absolute;
  top: 30px;
  right: 8px;
  z-index: 2;
  max-width: 190px;
  padding: 15px 18px;
  border: 1px solid #eadfd5;
  border-radius: 50%;
  background: rgba(250, 245, 239, .96);
  color: #7b6653;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.35;
  font-style: italic;
  text-align: center;
}

.to-global-footer__heartline {
  position: absolute;
  right: 18px;
  bottom: 32px;
  width: 150px;
  height: 75px;
  fill: none;
  stroke: #c5a98e;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}


/* Technická patička Shoptetu zůstane pod blokem */
#to-global-footer + #footer,
#to-global-footer + footer {
  margin-top: 0 !important;
}

@media (max-width: 1180px) {
  .to-global-footer__panel--finder {
    grid-template-columns: 180px minmax(0, 1fr);
    padding-left: 26px;
    padding-right: 34px;
  }

  .to-global-footer__visual {
    width: 170px;
    height: 170px;
  }

  .to-global-footer__visual svg {
    width: 138px;
    height: 138px;
  }

  .to-global-footer__panel--inspiration {
    grid-template-columns: minmax(0, 1fr) 220px;
    padding-left: 38px;
  }

  .to-global-footer__originalka img {
    width: 235px;
  }
}

@media (max-width: 900px) {
  #to-global-footer {
    margin-top: 42px;
  }

  .to-global-footer__main {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 720px);
  }

  .to-global-footer__panel {
    min-height: 0;
  }

  .to-global-footer__panel--finder {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 38px 30px;
  }

  .to-global-footer__panel--inspiration {
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 360px;
    padding: 38px 18px 0 30px;
    border-top: 1px solid #e9dfd6;
    border-left: 0;
  }

  #to-global-footer h2 {
    font-size: 36px;
  }

  .to-global-footer__visual {
    width: 138px;
    height: 138px;
  }

  .to-global-footer__visual svg {
    width: 112px;
    height: 112px;
  }

  .to-global-footer__originalka {
    min-height: 320px;
  }

  .to-global-footer__originalka img {
    width: 205px;
  }

  .to-global-footer__speech {
    top: 18px;
    right: 0;
    max-width: 155px;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .to-global-footer__main {
    width: calc(100% - 20px);
  }

  .to-global-footer__panel--finder,
  .to-global-footer__panel--inspiration {
    display: block;
    padding: 28px 20px;
  }

  .to-global-footer__visual {
    width: 105px;
    height: 105px;
    margin-bottom: 20px;
  }

  .to-global-footer__visual svg {
    width: 88px;
    height: 88px;
  }

  .to-global-footer__panel--inspiration {
    padding-bottom: 0;
  }

  #to-global-footer h2 {
    font-size: 30px;
  }

  #to-global-footer p {
    margin: 18px 0 22px;
    font-size: 14px;
  }

  .to-global-footer__cta {
    font-size: 15px;
  }

  .to-global-footer__originalka {
    min-height: 310px;
    margin-top: 8px;
  }

  .to-global-footer__originalka img {
    right: 50%;
    width: 220px;
    transform: translateX(50%);
  }

  .to-global-footer__speech {
    top: 6px;
    right: 50%;
    max-width: 170px;
    transform: translateX(80%);
  }

  .to-global-footer__heartline {
    right: 50%;
    transform: translateX(50%);
  }
}


/* V1.2 — Originálka musí být viditelná i na mobilu */
.to-global-footer__originalka img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 620px) {
  .to-global-footer__originalka {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    min-height: 300px;
    overflow: visible;
  }

  .to-global-footer__originalka img {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(240px, 78vw) !important;
    max-width: 100% !important;
    margin: auto auto 0 !important;
    transform: none !important;
  }

  .to-global-footer__speech {
    top: 8px;
    right: 12px;
    transform: none;
  }

  .to-global-footer__heartline {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }
}


/* V1.2.1 — oprava ořezu Originálky na mobilu */
@media (max-width: 620px) {
  #to-global-footer .to-global-footer__panel--inspiration {
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  #to-global-footer .to-global-footer__originalka {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 290px !important;
    min-height: 290px !important;
    margin: 18px 0 0 !important;
    overflow: hidden !important;
  }

  #to-global-footer .to-global-footer__originalka img {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 0 !important;
    width: auto !important;
    height: 280px !important;
    max-width: 92vw !important;
    max-height: 280px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateX(-50%) !important;
  }

  #to-global-footer .to-global-footer__speech {
    top: 8px !important;
    right: 8px !important;
    z-index: 3 !important;
    transform: none !important;
  }

  #to-global-footer .to-global-footer__heartline {
    right: 50% !important;
    bottom: 12px !important;
    z-index: 1 !important;
    transform: translateX(50%) !important;
  }
}
