/**
 * Futurum popup — frontend styly.
 * Design: Figma "Futurum 2026 – konverze" / PopUP (node 239:30).
 *
 * Tokeny:
 *   --popup-radius: 20px
 *   --popup-grad:   linear-gradient(-17.63deg, #00C08D 2.85%, #00487F 50.8%)
 *   --popup-accent: #FFC800
 */
/* ---------- overlay (Figma: světlé mléčné sklo) ---------- */
.theme-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(50.85px);
  backdrop-filter: blur(50.85px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.theme-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
body.theme-popup-lock {
  overflow: hidden;
}
/* ---------- okno ---------- */
.theme-popup {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
  font-family: 'Open Sans', 'Inter', Arial, sans-serif;
  color: #10233a;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.is-visible .theme-popup {
  transform: translateY(0) scale(1);
}
.theme-popup--sm {
  max-width: 480px;
  border-radius: 12px;
}
.theme-popup--lg {
  max-width: 960px;
}
.theme-popup__close {
  position: absolute;
  top: 55px;
  right: 49px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.theme-popup__close svg {
  display: block;
  width: 28px;
  height: 28px;
}
.theme-popup__close:hover {
  transform: rotate(90deg);
  opacity: 0.85;
}
.theme-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}
/* Na světlém (bílém) boxu je křížek tmavý. */
.theme-popup--light .theme-popup__close {
  color: #10233a;
}
.theme-popup--light .theme-popup__close:focus-visible {
  outline-color: var(--theme-primary, #00487f);
}
.theme-popup__content {
  position: relative;
  z-index: 1;
  padding: 59px 55px 55px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  /*
     * Figma: gradientová sekce JE celý box — vystupuje z paddingu obsahu,
     * aby kolem ní nebyl vidět bílý rám (.theme-popup) se zakulacenými rohy.
     */
}
.theme-popup__content > .theme-popup-section--gradient {
  margin-left: -55px;
  margin-right: -55px;
}
.theme-popup__content > .theme-popup-section--gradient:first-child {
  margin-top: -59px;
}
.theme-popup__content > .theme-popup-section--gradient:last-child {
  margin-bottom: -55px;
}
.theme-popup__content > .theme-popup-section--gradient:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.theme-popup__content > .theme-popup-section--gradient:not(:last-child) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
@media (max-width: 600px) {
  .theme-popup-overlay {
    padding: 12px;
  }
  .theme-popup__content {
    padding: 64px 20px 24px;
  }
  .theme-popup__content > .theme-popup-section--gradient {
    margin-left: -20px;
    margin-right: -20px;
  }
  .theme-popup__content > .theme-popup-section--gradient:first-child {
    margin-top: -64px;
  }
  .theme-popup__content > .theme-popup-section--gradient:last-child {
    margin-bottom: -24px;
  }
  .theme-popup {
    border-radius: 12px;
  }
  /* Křížek vlevo nahoře nezasahuje do textu: text začíná pod ním (padding 64 px). */
  .theme-popup__close {
    top: 14px;
    right: 14px;
  }
}
/* ---------- sekce a mřížka ---------- */
.theme-popup-section {
  position: relative;
  /* Figma: gradient box + dekorativní vlaštovka vpravo. */
}
.theme-popup-section + .theme-popup-section {
  margin-top: 20px;
}
.theme-popup-section--white {
  background: #fff;
}
.theme-popup-section--tint {
  background: #eef5fb;
  border-radius: 12px;
  padding: 18px;
}
.theme-popup-section--primary {
  background: var(--theme-primary, #00487f);
  color: var(--theme-on-primary, #ffffff);
  border-radius: 12px;
  padding: 18px;
}
.theme-popup-section--primary .theme-popup-heading,
.theme-popup-section--primary .theme-popup-text {
  color: var(--theme-on-primary, #ffffff);
}
.theme-popup-section--gradient {
  background: linear-gradient(-17.63deg, #00c08d 2.85%, #00487f 50.8%);
  color: #fff;
  border-radius: 20px;
  padding: 59px 55px 55px;
  overflow: hidden;
}
.theme-popup-section--gradient .theme-popup-heading {
  color: #fff;
}
.theme-popup-section--gradient .theme-popup-text {
  color: rgba(255, 255, 255, 0.92);
}
.theme-popup-section--gradient .theme-popup-divider span {
  background: rgba(255, 255, 255, 0.35);
}
.theme-popup-section--gradient .theme-popup-cta {
  background: rgba(255, 255, 255, 0.14);
  border-left-color: #ffc800;
}
.theme-popup-section--gradient .theme-popup-cta__title {
  color: #fff;
}
.theme-popup-section--gradient .theme-popup-cta__text {
  color: rgba(255, 255, 255, 0.85);
}
.theme-popup-section--gradient .theme-popup-social a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.theme-popup-section--gradient .theme-popup-social a:hover {
  background: rgba(255, 255, 255, 0.28);
}
/* Dekorativní vlaštovka (Figma Group 3767, opacity 16 %). */
.theme-popup-decor {
  position: absolute;
  top: -59px;
  right: -15px;
  width: 497px;
  height: 593.357px;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}
.theme-popup-decor img,
.theme-popup-decor svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* ---------- responzivita (mobil) ---------- */
@media (max-width: 600px) {
  .theme-popup-section--gradient {
    padding: 64px 20px 24px;
  }
  .theme-popup-section:first-child .theme-popup-grid {
    padding-right: 44px;
  }
  .theme-popup-decor {
    width: 300px;
    height: 358px;
    top: -30px;
    right: -120px;
  }
  .theme-popup-grid--multi {
    grid-template-columns: 1fr;
  }
  .theme-popup-heading {
    margin-bottom: 8px;
  }
  .theme-popup-heading--sm {
    font-size: 18px;
  }
  .theme-popup-heading--md {
    font-size: 24px;
  }
  .theme-popup-heading--lg {
    font-size: 28px;
    line-height: 1.15;
  }
  .theme-popup-text {
    font-size: 14px;
  }
  .theme-popup-text--eyebrow {
    font-size: 15px;
    line-height: 20px;
  }
  .theme-popup-btn-wrap {
    margin-bottom: 8px;
  }
  .theme-popup-btn {
    min-width: 0;
    font-size: 16px;
    padding: 0 24px;
  }
  .theme-popup-btn--ribbon .theme-popup-btn-mid {
    min-width: 0;
    padding: 0 28px 0 22px;
  }
  .theme-popup-btn--ribbon .theme-popup-btn-label {
    font-size: 16px;
  }
  .theme-popup-cta {
    padding: 12px 14px;
  }
}
.theme-popup-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}
.theme-popup-grid--multi {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* Rezerva pro křížek: první řádek nesmí běžet pod něj. */
.theme-popup-section:first-child .theme-popup-grid {
  padding-right: 56px;
}
.theme-popup-col {
  min-width: 0;
}
.theme-popup-col--12 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.theme-popup-col--13 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.theme-popup-col--23 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.theme-popup-col--1 {
  display: block;
}
.theme-popup-col--2 {
  display: block;
}
.theme-popup-col--3 {
  display: block;
}
@media (max-width: 600px) {
  .theme-popup-col--12,
  .theme-popup-col--13,
  .theme-popup-col--23 {
    grid-template-columns: 1fr;
  }
}
/* ---------- mezery (nastavuje se v builderu) ---------- */
/* Mezera pod prvkem: XS 13 / S 26 / M 39 / L 52 / XL 65 / XXL 78 px. */
.theme-popup-el.theme-popup-space--none {
  margin-bottom: 0;
}
.theme-popup-el.theme-popup-space--xs {
  margin-bottom: 13px;
}
.theme-popup-el.theme-popup-space--s {
  margin-bottom: 26px;
}
.theme-popup-el.theme-popup-space--m {
  margin-bottom: 39px;
}
.theme-popup-el.theme-popup-space--l {
  margin-bottom: 52px;
}
.theme-popup-el.theme-popup-space--xl {
  margin-bottom: 65px;
}
.theme-popup-el.theme-popup-space--xxl {
  margin-bottom: 78px;
}
/* Mezera mezi prvky ve sloupci — nahrazuje mezery pod jednotlivými prvky. */
.theme-popup-col--gapped {
  display: flex;
  flex-direction: column;
}
.theme-popup-col--gapped .theme-popup-el {
  margin-bottom: 0;
}
.theme-popup-col--gapped.theme-popup-gap--none {
  gap: 0;
}
.theme-popup-col--gapped.theme-popup-gap--xs {
  gap: 13px;
}
.theme-popup-col--gapped.theme-popup-gap--s {
  gap: 26px;
}
.theme-popup-col--gapped.theme-popup-gap--m {
  gap: 39px;
}
.theme-popup-col--gapped.theme-popup-gap--l {
  gap: 52px;
}
.theme-popup-col--gapped.theme-popup-gap--xl {
  gap: 65px;
}
.theme-popup-col--gapped.theme-popup-gap--xxl {
  gap: 78px;
}
/* ---------- prvky ---------- */
.theme-popup-align--left {
  text-align: left;
}
.theme-popup-align--center {
  text-align: center;
}
.theme-popup-align--right {
  text-align: right;
}
.theme-popup-heading {
  margin: 0 0 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Figma: žluté zvýraznění (datum). */
}
.theme-popup-heading--sm {
  font-size: 20px;
}
.theme-popup-heading--md {
  font-size: clamp(26px, 2.2vw, 34px);
}
.theme-popup-heading--lg {
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.1;
}
.theme-popup-heading--accent {
  color: #ffc800;
}
.theme-popup-heading--white {
  color: #fff;
}
.theme-popup-heading--ink {
  color: #10233a;
}
.theme-popup-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5a6e;
  /* Figma eyebrow: "PŘIJĎTE NA NÁŠ" — 18px, uppercase, tracking .36px. */
}
.theme-popup-text--eyebrow {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}
.theme-popup-image {
  margin: 0 0 12px;
}
.theme-popup-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.theme-popup-btn-wrap {
  margin: 0 0 12px;
}
.theme-popup-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 47px;
  padding: 0 36px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.027em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.2s ease;
  /* Figma (node 239:991): bílá mašle [levé křídlo 58.812 | střed | pravé křídlo 58.812].
       Střed (bílý obdélník x 25 → 235) je přes křídla přesazen (levý -34 px, pravý -38 px),
       minimální šířka 210 px a roste s textem. Výška všech částí 47.117 px. */
}
.theme-popup-btn:hover,
.theme-popup-btn:focus-visible {
  filter: brightness(0.94);
}
.theme-popup-btn--primary {
  background: var(--theme-primary, #00487f);
  color: var(--theme-on-primary, #ffffff);
  border-radius: 999px;
}
.theme-popup-btn--outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--theme-primary, #00487f);
  border-radius: 999px;
}
.theme-popup-btn--ribbon {
  min-width: 0;
  height: 47.117px;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  color: #000;
  border: 0;
  overflow: visible;
}
.theme-popup-btn--ribbon .theme-popup-btn-wing {
  display: block;
  flex: 0 0 58.812px;
  width: 58.812px;
  height: 47.117px;
  color: #fff;
}
.theme-popup-btn--ribbon .theme-popup-btn-mid {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin: 0 -38px 0 -34px;
  min-width: 210px;
  /* Text je na ose Figma (střed 122.5 px od levé hrany) — proto nerovnoměrný padding. */
  padding: 0 47.5px 0 32.5px;
  background: #fff;
}
.theme-popup-btn--ribbon .theme-popup-btn-label {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.486px;
  line-height: 28px;
  color: #000;
  white-space: nowrap;
}
.theme-popup-divider {
  margin: 0 0 14px;
}
.theme-popup-divider span {
  display: block;
  height: 2px;
  background: rgba(16, 35, 58, 0.12);
  border-radius: 2px;
}
.theme-popup-social {
  margin: 0 0 12px;
}
.theme-popup-social ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-popup-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef5fb;
  color: var(--theme-primary, #00487f);
  transition: background 0.15s ease;
}
.theme-popup-social a:hover {
  background: #cde2f3;
}
.theme-popup-social a svg {
  width: 16px;
  height: 16px;
}
.theme-popup-social.theme-popup-align--center ul {
  justify-content: center;
}
.theme-popup-social.theme-popup-align--right ul {
  justify-content: flex-end;
}
.theme-popup-cta {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--theme-primary, #00487f);
  background: #eef5fb;
  border-radius: 0 12px 12px 0;
}
.theme-popup-cta__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
  color: #10233a;
}
.theme-popup-cta__text {
  margin: 0;
  font-size: 14px;
  color: #4a5a6e;
}
