:root {
  --color-bg: #ffffff;
  --color-text: #2f3c52;
  --color-link: #ad874a;
  --color-link-hover: #329bfd;
  --color-menu-active: #b62063;
  --color-menu-text: #2f4f78;
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 28px rgba(45, 80, 121, 0.18);
  --shadow-modal: 0 22px 40px rgba(32, 49, 74, 0.3);
  --transition-fast: 0.22s ease;
}

body {
  overflow-x: hidden;
  font-family: 'Catamaran', sans-serif;
  background-color: var(--color-bg);
  padding-top: 120px;
}

img {
  max-width: 100%;
  height: auto;
}

body.homepage {
  overflow-x: hidden;
}

body.inner-page {
  background-image: url('_theme/bg_homepage.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  background-color: #7aa8dc;
}

body.page-mikulas.inner-page {
  background-image: url('_theme/bg_mikulas.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  background-color: #ffffff;
}

p {
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  font-family: 'Baloo 2', sans-serif;
}

a {
  color: var(--color-link);
  text-decoration-line: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-line: underline;
}

a img,
.footer a img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

a:hover img,
.footer a:hover img {
  transform: scale(1.1);
  filter: brightness(1.4);
}

#mainNav {
  background-color: #000000;
  background-image: url('_theme/bg_menu.png');
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center -34px;
  background-size: cover;
}

#mainNav .navbar-toggler {
  font-size: 13px;
  right: 0;
  padding: 9px 12px;
  text-transform: uppercase;
  color: #244a78;
  border: 1px solid rgba(36, 74, 120, 0.45);
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  line-height: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
}

#mainNav .mobile-nav-actions {
  display: none;
}

#mainNav .mobile-contact-btn {
  text-decoration: none;
}

#mainNav .navbar-brand {
  color: #ad874a;
  font-family: 'Barlow Condensed', sans-serif;
}

#mainNav .navbar-brand.active,
#mainNav .navbar-brand:active,
#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
  color: #009fe3;
}

#mainNav .nav-main-links {
  gap: 0.95rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

#mainNav .nav-main-links .nav-link {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  font-weight: 700;
  color: var(--color-menu-text);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.2rem 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
  position: relative;
  display: inline-block;
}

#mainNav .nav-main-links .nav-link:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 4px;
  border-radius: 10px;
}

#mainNav .nav-main-links .nav-link.nav-link--pending {
  padding-right: 0;
  padding-bottom: 0.58rem;
}

#mainNav .nav-main-links .nav-link .nav-coming {
  position: absolute;
  top: calc(100% - 0.3rem);
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(182, 32, 99, 0.94);
  border-radius: 999px;
  padding: 0.02rem 0.33rem 0.1rem;
  text-shadow: 0 1px 0 rgba(31, 18, 48, 0.22);
  line-height: 1;
  pointer-events: none;
}

#mainNav .nav-main-links .nav-link.nav-link--pending:hover .nav-coming,
#mainNav .nav-main-links .nav-link.nav-link--pending:focus-visible .nav-coming {
  transform: translateX(-50%) rotate(-11deg) scale(1.06);
}

#mainNav .nav-main-links .nav-link.active,
#mainNav .nav-main-links .nav-link:hover,
#mainNav .nav-main-links .nav-link:focus,
#mainNav .nav-main-links .nav-link:active {
  color: var(--color-menu-active) !important;
  transform: translateY(-2px) rotate(-1.8deg);
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 16px;
    padding-bottom: 0;
    transition: padding-top 0.3s, padding-bottom 0.3s;
    border: none;
    background-image: url('_theme/bg_menu.png');
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center -34px;
    background-size: cover;
  }

  #mainNav .navbar-brand {
    font-size: 1.75em;
    transition: all 0.3s;
  }

  #mainNav .container {
    align-items: flex-start;
  }

  #mainNav .navbar-collapse {
    flex-grow: 0;
    margin-top: 6px;
    margin-left: 170px;
    max-width: none;
  }

  #mainNav .nav-main-links {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 1.1rem;
    row-gap: 0;
    align-items: center;
    gap: 1.1rem;
  }

  #mainNav .nav-main-links .nav-link {
    font-size: clamp(1.1rem, 1.2vw, 1.32rem);
    padding: 0.1rem 0;
  }

  #mainNav .nav-main-links--desktop .nav-item-offers {
    position: relative;
  }

  #mainNav .nav-main-links--desktop .nav-offers-toggle {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
  }

  #mainNav .nav-main-links--desktop .nav-offers-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.18em;
    transition: transform 0.22s ease;
  }

  #mainNav .nav-main-links--desktop .show > .nav-offers-toggle::after,
  #mainNav .nav-main-links--desktop .nav-offers-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu {
    margin-top: 0.8rem;
    padding: 0.8rem 0.95rem;
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px rgba(31, 18, 48, 0.16);
    min-width: 232px;
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu li + li {
    margin-top: 0.12rem;
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    border-radius: 16px;
    padding: 0.5rem 0.65rem;
    color: var(--color-menu-default);
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    background: transparent;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item:hover,
  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item:focus-visible,
  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item.active {
    color: var(--color-menu-active);
    background: rgba(91, 143, 217, 0.12);
    transform: translateY(-1px) rotate(-1deg);
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item:focus-visible {
    outline: 2px solid rgba(47, 79, 120, 0.32);
    outline-offset: 2px;
  }

  #mainNav .nav-main-links--desktop .nav-offers-menu .dropdown-item .nav-coming {
    position: static;
    transform: rotate(-8deg);
    margin-left: auto;
    font-size: 0.54rem;
    padding: 0.02rem 0.31rem 0.09rem;
    flex-shrink: 0;
  }

  .inner-page > section:first-of-type .container.pt-5 {
    padding-top: 2rem !important;
  }

  .inner-page > section:first-of-type .row.align-items-center.g-4 {
    align-items: flex-start !important;
  }

  .inner-page > section:first-of-type .hero-photo,
  .inner-page > section:first-of-type .pomoc-heart-photo {
    margin-top: -20px;
  }

  .inner-page > section:first-of-type .col-lg-7 {
    padding-top: 0;
  }

  .inner-page > section:first-of-type .col-lg-7 > h1.section-title-match {
    margin-top: -14px;
  }

  .inner-page > section:first-of-type .col-lg-7 > .divadlo-intro-box,
  .inner-page > section:first-of-type .col-lg-7 > .about-intro-box {
    margin-top: 1rem !important;
  }
}

@media (max-width: 991px) {
  #mainNav .mobile-nav-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
  }

  #mainNav .mobile-contact-btn,
  #mainNav .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 0.6rem 0.92rem;
    border-radius: 14px;
    border: 0;
    background: #00a7e8;
    color: #000000;
    font-family: 'Baloo 2', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 95, 152, 0.22);
    min-height: 44px;
  }

  #mainNav .mobile-contact-btn:hover,
  #mainNav .mobile-contact-btn:focus,
  #mainNav .mobile-menu-btn:hover,
  #mainNav .mobile-menu-btn:focus {
    color: #000000;
    text-decoration: none;
    filter: saturate(1.06) brightness(1.03);
  }

  #mainNav .mobile-contact-btn:focus-visible,
  #mainNav .mobile-menu-btn:focus-visible {
    outline: 2px solid rgba(47, 79, 120, 0.65);
    outline-offset: 2px;
  }

  #mainNav {
    background-position: center -20px;
  }

  #mainNav .navbar-collapse {
    margin-top: 0.25rem;
    width: 100%;
  }

  #mainNav .nav-main-links {
    margin-top: 0.6rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    gap: 0.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    width: fit-content;
    min-width: 220px;
  }

  #mainNav .nav-main-links .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.25rem;
    color: #355b89;
  }

  #mainNav .nav-main-links .nav-link.nav-link--pending {
    padding-right: 0.25rem;
    padding-bottom: 0.5rem;
  }

  #mainNav .nav-main-links .nav-link .nav-coming {
    top: 50%;
    left: auto;
    right: -1.2rem;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 0.54rem;
    padding: 0.02rem 0.31rem 0.09rem;
  }

  #mainNav .nav-main-links .nav-link.nav-link--pending:hover .nav-coming,
  #mainNav .nav-main-links .nav-link.nav-link--pending:focus-visible .nav-coming {
    transform: translateY(-50%) rotate(-11deg) scale(1.06);
  }
}

.bg-green-light {
  background-color: #d1eeec;
}

.bg-yellow-light {
  background-color: #ffebd0;
}

.text-green {
  color: #19a698;
}

.text-teal {
  color: #19a698;
}

.text-orange {
  color: #fe600b;
}

.text-yellow {
  color: #fbb03b;
}

.text-pink-dark {
  color: #b62063;
}

.footer {
  padding: 36px 0;
  color: #ffffff;
  background-color: #fbb03b;
  font-family: 'Catamaran', sans-serif;
}

.references-section {
  border-bottom: 1px solid rgba(20, 41, 66, 0.08);
  padding-top: 2.2rem !important;
  padding-bottom: 1.4rem !important;
}

.references-headline h2 {
  margin: 0 0 1.1rem;
  text-align: center;
}

.references-headline {
  text-align: center;
  display: flex;
  justify-content: center;
}

.references-headline .about-title-tilt {
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transform-origin: center center;
}

.references-section .container {
  padding-top: 1.1rem !important;
  padding-bottom: 0.25rem !important;
}

.reference-cloud {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: 0.65rem;
  row-gap: 0.25rem;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0.35rem 0 0.7rem;
}

.reference-bubble {
  position: relative;
  --bubble-tilt: 0deg;
  --bubble-size: 150px;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transform: rotate(var(--bubble-tilt));
  transition: transform 0.22s ease;
  animation: referenceFloat 8.6s ease-in-out infinite;
}

.reference-bubble.bubble-sm { --bubble-size: 146px; }
.reference-bubble.bubble-md { --bubble-size: 162px; }
.reference-bubble.bubble-lg { --bubble-size: 178px; }

.reference-bubble:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 4px;
}

.reference-bubble:hover,
.reference-bubble:focus-visible {
  animation: referenceHoverPop 0.65s ease-in-out infinite alternate;
  z-index: 5;
  filter: saturate(1.14) brightness(1.04);
  box-shadow: 0 14px 24px rgba(53, 91, 137, 0.22);
}

@keyframes referenceFloat {
  0% { transform: rotate(var(--bubble-tilt)) translateY(0px); }
  25% { transform: rotate(calc(var(--bubble-tilt) + 1.4deg)) translateY(-7px); }
  50% { transform: rotate(var(--bubble-tilt)) translateY(-2px); }
  75% { transform: rotate(calc(var(--bubble-tilt) - 1.4deg)) translateY(5px); }
  100% { transform: rotate(var(--bubble-tilt)) translateY(0px); }
}

@keyframes referenceHoverPop {
  0% { transform: rotate(calc(var(--bubble-tilt) - 2deg)) translateY(-8px) scale(1.06); }
  50% { transform: rotate(calc(var(--bubble-tilt) + 5deg)) translateY(-12px) scale(1.13); }
  100% { transform: rotate(calc(var(--bubble-tilt) - 4deg)) translateY(-9px) scale(1.1); }
}

.reference-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bubble-frame);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: 0.95;
  transition: transform 0.22s ease;
}

.reference-bubble:hover::before,
.reference-bubble:focus-visible::before {
  transform: scale(1.04) rotate(-5deg);
}

.reference-bubble.frame-turquoise,
.value-bubble.frame-turquoise,
.reference-modal-bubble.frame-turquoise,
.value-modal-bubble.frame-turquoise { --bubble-frame: url('_theme/bg_foto_tyrkysova1.png'); --bubble-color: #34b6e4; }
.reference-bubble.frame-fuchsia,
.value-bubble.frame-fuchsia,
.reference-modal-bubble.frame-fuchsia,
.value-modal-bubble.frame-fuchsia { --bubble-frame: url('_theme/bg_foto_fuchsiova.png'); --bubble-color: #d63f93; }
.reference-bubble.frame-orange,
.value-bubble.frame-orange,
.reference-modal-bubble.frame-orange,
.value-modal-bubble.frame-orange { --bubble-frame: url('_theme/bg_foto_oranzova.png'); --bubble-color: #ef8b3a; }
.reference-bubble.frame-violet,
.value-bubble.frame-violet,
.reference-modal-bubble.frame-violet,
.value-modal-bubble.frame-violet { --bubble-frame: url('_theme/bg_foto_fialova.png'); --bubble-color: #9e7bd5; }
.reference-bubble.frame-blue,
.value-bubble.frame-blue,
.reference-modal-bubble.frame-blue,
.value-modal-bubble.frame-blue { --bubble-frame: url('_theme/bg_foto_modra2.png'); --bubble-color: #5b8fd9; }
.reference-bubble.frame-green,
.value-bubble.frame-green,
.reference-modal-bubble.frame-green,
.value-modal-bubble.frame-green { --bubble-frame: url('_theme/bg_foto_zelena.png'); --bubble-color: #6faa67; }
.reference-bubble.frame-red,
.value-bubble.frame-red,
.reference-modal-bubble.frame-red,
.value-modal-bubble.frame-red { --bubble-frame: url('_theme/bg_foto_cervena.png'); --bubble-color: #e34d4b; }

.reference-bubble-inner {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.reference-bubble-text {
  display: none;
}

.reference-bubble-meta {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  color: #ffffff;
  line-height: 1.15;
  transition: transform 0.22s ease;
}

.reference-bubble:hover .reference-bubble-meta,
.reference-bubble:focus-visible .reference-bubble-meta {
  transform: rotate(-3deg) scale(1.02);
}

.reference-bubble-meta strong {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.04vw, 1.08rem);
}

.reference-bubble-meta img {
  max-width: 68px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reference-bubble-click {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  z-index: 2;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(31, 18, 48, 0.18);
  pointer-events: none;
  opacity: 0.9;
}

.reference-bubble:hover .reference-bubble-click,
.reference-bubble:focus-visible .reference-bubble-click,
.value-bubble:hover .value-bubble-click,
.value-bubble:focus-visible .value-bubble-click {
  transform: translateX(-50%) rotate(-9deg) scale(1.04);
  color: rgba(255, 255, 255, 0.98);
}

.value-bubble-click {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  z-index: 2;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(31, 18, 48, 0.18);
  pointer-events: none;
  opacity: 0.9;
}

.reference-cloud--feature {
  max-width: 1260px;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.reference-cloud--feature .reference-bubble {
  cursor: pointer;
  pointer-events: auto;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(2),
.reference-cloud--divadlo-feature .reference-bubble:nth-child(4),
.reference-cloud--divadlo-feature .reference-bubble:nth-child(6) {
  --bubble-size: 170px;
}

.reference-cloud--divadlo-feature {
  column-gap: 0.45rem;
  row-gap: 0.2rem;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(1) {
  --bubble-size: 176px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(2) {
  --bubble-size: 164px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(3) {
  --bubble-size: 176px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(4) {
  --bubble-size: 170px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(5) {
  --bubble-size: 162px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(6) {
  --bubble-size: 170px;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(7) {
  --bubble-size: 162px;
}

.reference-cloud--divadlo-feature .reference-bubble-inner {
  inset: 18%;
}

.reference-cloud--divadlo-feature .reference-bubble-meta strong {
  font-size: clamp(0.92rem, 0.96vw, 1.02rem);
  line-height: 1.12;
}

.reference-cloud--divadlo-feature .reference-bubble:nth-child(4) .reference-bubble-meta strong,
.reference-cloud--divadlo-feature .reference-bubble:nth-child(6) .reference-bubble-meta strong {
  font-size: clamp(0.98rem, 1.02vw, 1.08rem);
}

.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(24, 37, 56, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overscroll-behavior: contain;
}

.reference-modal-bubble {
  position: relative;
  width: min(620px, 94vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.reference-modal-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bubble-frame);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: 0.98;
}

.reference-modal-bubble-inner {
  position: relative;
  z-index: 1;
  inset: auto;
  width: 76%;
  height: 76%;
  margin: 12% auto 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1.65rem;
  color: #ffffff;
}

.reference-modal-close {
  position: absolute;
  top: 10%;
  right: 15%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  z-index: 3;
}

.reference-modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.reference-modal-text {
  margin: 0;
  color: #ffffff;
  line-height: 1.5;
  font-size: clamp(1.14rem, 1.46vw, 1.32rem);
}

.reference-modal-author {
  margin: 0.95rem 0 0;
  font-family: 'Baloo 2', sans-serif;
  color: #ffffff;
  font-size: clamp(1.14rem, 1.5vw, 1.3rem);
}

.reference-modal-logo {
  display: block;
  margin-bottom: 0.7rem;
  max-width: 130px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reference-modal-meta {
  margin-top: 0;
  display: block;
}

.reference-bubble:nth-child(1) { --bubble-tilt: -2deg; margin-top: 0; }
.reference-bubble:nth-child(2) { --bubble-tilt: 1.8deg; margin-top: 54px; }
.reference-bubble:nth-child(3) { --bubble-tilt: -1.4deg; margin-top: 0; }
.reference-bubble:nth-child(4) { --bubble-tilt: 1.9deg; margin-top: 54px; }
.reference-bubble:nth-child(5) { --bubble-tilt: -2.1deg; margin-top: 0; }
.reference-bubble:nth-child(6) { --bubble-tilt: 1.2deg; margin-top: 54px; }
.reference-bubble:nth-child(7) { --bubble-tilt: -1.3deg; margin-top: 0; }

.reference-bubble:nth-child(1) { animation-duration: 7.8s; animation-delay: -0.7s; }
.reference-bubble:nth-child(2) { animation-duration: 8.9s; animation-delay: -1.8s; }
.reference-bubble:nth-child(3) { animation-duration: 7.4s; animation-delay: -1.1s; }
.reference-bubble:nth-child(4) { animation-duration: 9.2s; animation-delay: -2.3s; }
.reference-bubble:nth-child(5) { animation-duration: 8.1s; animation-delay: -0.9s; }
.reference-bubble:nth-child(6) { animation-duration: 9.6s; animation-delay: -2.7s; }
.reference-bubble:nth-child(7) { animation-duration: 8.4s; animation-delay: -1.4s; }

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  transition: transform 0.22s ease;
}

.footer-social-link:hover {
  transform: translateY(-3px);
}

.footer-social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.footer-social-icon {
  width: 52px;
  height: 52px;
  object-fit: cover;
  filter: brightness(0) invert(1);
}

.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus .footer-social-icon {
  transform: scale(1.1) rotate(-4deg);
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(255, 255, 255, 0.35));
}

.footer-copy {
  margin-top: 1.15rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1.45;
}

.footer-thanks {
  margin: 0.7rem 0 0;
  max-width: 44rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
}

.footer-copy-line {
  display: inline;
}

.footer-copy-sep {
  display: inline;
}

.footer-copy a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-copy a:hover,
.footer-copy a:focus {
  color: var(--color-menu-active);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.homepage-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url('_theme/bg_homepage.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.homepage-copy {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 18;
  width: min(92vw, 980px);
  padding: 0 1rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(47, 60, 82, 0.9);
}

.homepage-copy-line {
  display: inline;
}

.homepage-copy-sep {
  display: inline;
}

.homepage-copy a {
  color: #355b89;
  font-weight: 700;
  text-decoration: none;
}

.homepage-copy a:hover,
.homepage-copy a:focus {
  color: var(--color-menu-active);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.planet-item {
  position: absolute;
  display: block;
  text-decoration: none;
}

.planet-coming {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(0.62rem, 0.88vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(182, 32, 99, 0.92);
  border-radius: 999px;
  padding: 0.04rem 0.45rem 0.12rem;
  text-shadow: 0 1px 0 rgba(31, 18, 48, 0.22);
  pointer-events: none;
  z-index: 4;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.planet-item--pending:hover .planet-coming,
.planet-item--pending:focus-visible .planet-coming {
  transform: translate(-50%, -50%) rotate(-11deg) scale(1.08);
  filter: saturate(1.06);
}

.planet-label {
  display: none;
}

.planet {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  will-change: transform, filter;
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: none;
}

.planet-swap {
  display: grid;
  place-items: center;
}

.planet-swap .planet {
  grid-area: 1 / 1;
}

.planet-hover-layer {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.planet-hover-layer.is-visible {
  opacity: 1;
}

.central {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 300px;
  height: 300px;
  transform-origin: center;
}

.homepage-video-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.homepage-video-trigger::before,
.homepage-video-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 16;
  transition: transform 0.24s ease, opacity 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.homepage-video-trigger::before {
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 26px rgba(53, 91, 137, 0.18);
  opacity: 0.94;
}

.homepage-video-trigger::after {
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 31px solid rgba(255, 255, 255, 0.92);
}

.homepage-video-trigger:hover::before,
.homepage-video-trigger:focus-visible::before {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
}

.homepage-video-trigger:hover::after,
.homepage-video-trigger:focus-visible::after {
  transform: translate(-40%, -50%) scale(1.08);
}

.homepage-video-trigger .hero-video-play {
  display: none;
}

.homepage-video-trigger .central {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 10;
}

.homepage-video-trigger:hover .central,
.homepage-video-trigger:focus-visible .central {
  animation: centralWobbleHome 0.9s ease-in-out infinite;
}

@keyframes centralWobble {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) rotate(-4deg) scale(1.01);
  }
  50% {
    transform: translate(-50%, -50%) rotate(4deg) scale(1.015);
  }
  75% {
    transform: translate(-50%, -50%) rotate(-3deg) scale(1.01);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}

@keyframes centralWobbleHome {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-4deg) scale(1.01);
  }
  50% {
    transform: rotate(4deg) scale(1.015);
  }
  75% {
    transform: rotate(-3deg) scale(1.01);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroPhotoWobble {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-3deg) scale(1.01); }
  50% { transform: rotate(3deg) scale(1.015); }
  75% { transform: rotate(-2deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

.orb-kniha {
  top: 28%;
  left: 12%;
  width: 150px;
  height: 150px;
  animation: orbSway 3.4s ease-in-out infinite;
}

.orb-tabor {
  top: 18%;
  right: 5%;
  width: 170px;
  height: 170px;
  animation: orbDrift 5.6s ease-in-out infinite;
}

.orb-showparada {
  top: 35%;
  left: 70%;
  width: 200px;
  height: 200px;
  animation: orbPulseTilt 4.8s ease-in-out infinite;
}

.orb-oslavy {
  top: 60%;
  left: 5%;
  width: 200px;
  height: 200px;
  animation: orbFloatWide 6.4s ease-in-out infinite;
}

.orb-pomoc {
  bottom: 8%;
  right: 55%;
  width: 150px;
  height: 150px;
  animation: orbBounceSoft 4.2s ease-in-out infinite;
}

.orb-divadlo {
  bottom: 30%;
  left: 20%;
  width: 170px;
  height: 170px;
  animation: orbSwayWide 5.9s ease-in-out infinite;
}

.orb-spolupracujme {
  bottom: 25%;
  right: 30%;
  width: 170px;
  height: 170px;
  animation: orbLoopTiny 7.4s ease-in-out infinite;
}

.orb-mikulas {
  top: 65%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation: orbBouncyTilt 3.3s ease-in-out infinite;
}

.planet-orbit {
  position: absolute;
  inset: -20px;
  opacity: 0.9;
  visibility: visible;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.planet-orbit svg {
  width: 100%;
  height: 100%;
}

.planet-orbit text {
  fill: #000000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-anchor: middle;
}

.planet-item:hover .planet-orbit {
  opacity: 1;
  transform: scale(1.03);
}

.planet-item:hover .planet,
.planet-item:focus-visible .planet {
  transform: scale(1.15) rotate(-4deg);
  filter: none;
}

.orb-tabor:hover .planet,
.orb-tabor:focus-visible .planet {
  transform: scale(1.16) rotate(4deg);
}

.orb-showparada:hover .planet,
.orb-showparada:focus-visible .planet {
  transform: scale(1.17) rotate(-5deg);
}

.orb-oslavy:hover .planet,
.orb-oslavy:focus-visible .planet {
  transform: scale(1.16) rotate(5deg);
}

.orb-pomoc:hover .planet,
.orb-pomoc:focus-visible .planet {
  transform: scale(1.14) rotate(-6deg);
}

.orb-divadlo:hover .planet,
.orb-divadlo:focus-visible .planet {
  transform: scale(1.16) rotate(6deg);
}

.orb-spolupracujme:hover .planet,
.orb-spolupracujme:focus-visible .planet {
  transform: scale(1.15) rotate(-5deg);
}

.orb-mikulas:hover .planet,
.orb-mikulas:focus-visible .planet {
  transform: scale(1.18) rotate(5deg);
}

.planet-item:focus-visible {
  outline: 2px solid #fcd778;
  outline-offset: 4px;
  border-radius: 50%;
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes orbSway {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(2.5deg); }
  50% { transform: translateY(1px) rotate(0deg); }
  75% { transform: translateY(3px) rotate(-2.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-4px, -3px) rotate(1.5deg); }
  50% { transform: translate(2px, -1px) rotate(-1deg); }
  75% { transform: translate(5px, 3px) rotate(1.4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes orbPulseTilt {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.045) rotate(1.6deg); }
  50% { transform: scale(1.07) rotate(0deg); }
  75% { transform: scale(1.04) rotate(-1.6deg); }
}

@keyframes orbFloatWide {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(-1.8deg); }
  45% { transform: translateY(-2px) rotate(1.5deg); }
  70% { transform: translateY(5px) rotate(-1.4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes orbBounceSoft {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-6px) scale(1.03); }
  55% { transform: translateY(2px) scale(0.99); }
  80% { transform: translateY(-2px) scale(1.01); }
}

@keyframes orbSwayWide {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(2.8deg) translateY(-4px); }
  50% { transform: rotate(0deg) translateY(1px); }
  75% { transform: rotate(-2.8deg) translateY(4px); }
  100% { transform: rotate(0deg) translateY(0); }
}

@keyframes orbLoopTiny {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, -3px) rotate(1deg); }
  50% { transform: translate(0, -5px) rotate(0deg); }
  75% { transform: translate(-3px, -2px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes orbBouncyTilt {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-5px) rotate(1.8deg) scale(1.03); }
  50% { transform: translateY(1px) rotate(0deg) scale(1.07); }
  75% { transform: translateY(-3px) rotate(-1.8deg) scale(1.03); }
}

.hero-photo {
  width: 400px;
  height: 400px;
  margin: 0 auto;
  transform-origin: center;
  transition: transform 0.28s ease;
}

.hero-photo:hover,
.hero-photo:focus-within {
  animation: heroPhotoWobble 0.9s ease-in-out infinite;
}

.js-hero-video-trigger {
  cursor: pointer;
}

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 26px rgba(53, 91, 137, 0.2);
  pointer-events: none;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, opacity 0.24s ease;
  opacity: 0.96;
}

.hero-video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-36%, -50%);
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 28px solid rgba(255, 255, 255, 0.95);
}

.js-hero-video-trigger:hover .hero-video-play,
.js-hero-video-trigger:focus-visible .hero-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.74);
}

.js-hero-video-trigger:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.62);
  outline-offset: 6px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(34, 53, 82, 0.72);
}

.video-modal-card {
  position: relative;
  width: min(1100px, 100%);
  background: #f5d7b7;
  border-radius: 32px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(34, 53, 82, 0.28);
}

.video-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #355b89;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-title {
  margin: 0 3rem 1rem 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
}

.video-modal-player-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  min-height: min(52vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.42), rgba(18, 27, 42, 0.66));
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
}

.video-modal-loading[hidden] {
  display: none;
}

.video-modal-spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: spinLoader 0.9s linear infinite;
}

.video-modal-loading-text {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.video-modal-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #2f3c52;
  font-weight: 600;
  text-align: center;
}

.video-modal-player {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(74vh, 720px);
}

.video-modal-player.is-loading {
  opacity: 0.42;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(34, 53, 82, 0.78);
}

.image-lightbox-card {
  position: relative;
  width: min(1180px, 100%);
  background: #f5d7b7;
  border-radius: 32px;
  padding: 1.6rem 1.35rem 1.3rem;
  box-shadow: 0 24px 60px rgba(34, 53, 82, 0.3);
}

.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #355b89;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-title {
  margin: 0 3rem 1rem 0;
  text-align: center;
  font-size: clamp(1.85rem, 2.8vw, 2.8rem);
  font-weight: 700;
}

.image-lightbox-stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 0.8rem;
}

.image-lightbox-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  padding: 1rem;
}

.image-lightbox-photo {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(34, 53, 82, 0.22);
}

.image-lightbox-nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #355b89;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.image-lightbox-nav:hover,
.image-lightbox-nav:focus-visible {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.96);
}

.image-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

@media (min-width: 992px) and (max-width: 1365px) {
  .homepage-wrapper .orb-kniha {
    width: 132px;
    height: 132px;
    left: 13%;
  }

  .homepage-wrapper .orb-tabor {
    width: 150px;
    height: 150px;
    right: 6%;
  }

  .homepage-wrapper .orb-showparada {
    width: 176px;
    height: 176px;
    left: 69%;
  }

  .homepage-wrapper .orb-oslavy {
    width: 176px;
    height: 176px;
    left: 6%;
  }

  .homepage-wrapper .orb-pomoc {
    width: 132px;
    height: 132px;
    right: 52%;
  }

  .homepage-wrapper .orb-divadlo {
    width: 150px;
    height: 150px;
    left: 21%;
  }

  .homepage-wrapper .orb-spolupracujme {
    width: 150px;
    height: 150px;
    right: 29%;
  }

  .homepage-wrapper .orb-mikulas {
    width: 176px;
    height: 176px;
    right: 8%;
  }

  .inner-page > section:first-of-type .container.pt-5 {
    padding-top: 2rem !important;
  }

  .inner-page > section:first-of-type .row.align-items-center.g-4 {
    align-items: flex-start !important;
  }

  .inner-page > section:first-of-type .hero-photo,
  .inner-page > section:first-of-type .pomoc-heart-photo {
    margin-top: -20px;
  }

  .inner-page > section:first-of-type .col-lg-7 {
    padding-top: 0;
  }

  .inner-page > section:first-of-type .col-lg-7 > h1.section-title-match {
    margin-top: -14px;
  }

  .inner-page > section:first-of-type .col-lg-7 > .divadlo-intro-box,
  .inner-page > section:first-of-type .col-lg-7 > .about-intro-box {
    margin-top: 1rem !important;
  }

  .pohadky-cloud.value-cloud {
    column-gap: 0.62rem;
    row-gap: 0.22rem;
    max-width: 980px;
  }

  .pohadky-cloud .value-bubble:nth-child(1) { --value-size: 104px; margin-top: 0; }
  .pohadky-cloud .value-bubble:nth-child(2) { --value-size: 112px; margin-top: 18px; }
  .pohadky-cloud .value-bubble:nth-child(3) { --value-size: 108px; margin-top: 0; }
  .pohadky-cloud .value-bubble:nth-child(4) { --value-size: 116px; margin-top: 18px; }
  .pohadky-cloud .value-bubble:nth-child(5) { --value-size: 110px; margin-top: 0; }
  .pohadky-cloud .value-bubble:nth-child(6) { --value-size: 112px; margin-top: 18px; }
  .pohadky-cloud .value-bubble:nth-child(7) { --value-size: 106px; margin-top: 0; }

  .divadlo-pohadky-cloud .value-bubble:nth-child(1) { --value-size: 112px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(2) { --value-size: 120px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(3) { --value-size: 114px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(4) { --value-size: 122px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(5) { --value-size: 116px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(6) { --value-size: 120px; }
  .divadlo-pohadky-cloud .value-bubble:nth-child(7) { --value-size: 112px; }
}

.pomoc-heart-photo {
  width: min(420px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.person-photo {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.person-photo-lg {
  width: 340px;
  height: 340px;
}

.person-ig-orb {
  position: absolute;
  right: -8%;
  top: 8%;
  z-index: 6;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.22s ease;
}

.person-ig-orb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: brightness(0) invert(1);
}

.person-ig-orb:hover img,
.person-ig-orb:focus img {
  transform: scale(1.1) rotate(-4deg);
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(255, 255, 255, 0.35));
}

.person-ig-orb:hover,
.person-ig-orb:focus {
  transform: translateY(-3px);
}

.person-ig-orb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.person-ig-orb-modal {
  right: -6%;
  top: 6%;
}

.person-card {
  background: var(--person-card-bg, #d1eeec);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem 1.35rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.person-card:hover,
.person-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: var(--person-card-bg-hover, #c5e8e5);
}

.person-card:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 3px;
}

.person-role {
  color: #304f78;
}

.person-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(24, 37, 56, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  overscroll-behavior: contain;
}

.person-modal::before {
  content: '';
  position: absolute;
  left: var(--person-expand-x, 50%);
  top: var(--person-expand-y, 50%);
  width: 28vmax;
  height: 28vmax;
  border-radius: 50%;
  background: var(--person-modal-expand-bg, #d9e7f8);
  transform: translate(-50%, -50%) scale(0.08);
  opacity: 0;
  pointer-events: none;
}

.person-modal.is-open::before {
  animation: personModalExpand 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.person-modal-card {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  background: var(--person-modal-bg, #f4f7fb);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(73, 110, 151, 0.28);
  box-shadow: var(--shadow-modal);
  padding: 1.5rem 1.7rem 1.6rem;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
  scrollbar-gutter: stable;
}

.person-modal.is-open .person-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.person-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  color: #304f78;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.person-modal-close:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.7);
  outline-offset: 2px;
}

.person-modal-head {
  text-align: center;
  padding: 0.35rem 0 1.1rem;
}

.person-modal-gallery {
  position: static;
  width: min(420px, 100%);
  height: auto;
  margin: 0.55rem auto 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  pointer-events: auto;
  z-index: 4;
}

.person-photo-thumb {
  position: static;
  width: 62px;
  height: 62px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.person-photo-thumb:hover,
.person-photo-thumb:focus-visible {
  animation: centralWobbleHome 0.9s ease-in-out infinite;
}

.person-photo-thumb:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.58);
  outline-offset: 2px;
}

.person-photo-thumb-frame {
  display: none;
}

.person-photo-thumb-image {
  position: static;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.person-photo-thumb.is-active {
  box-shadow: 0 0 0 3px rgba(47, 79, 120, 0.26);
}

.person-modal-photo {
  width: 300px;
  height: 300px;
  margin: 0 auto 0.9rem;
  cursor: zoom-in;
  transition: filter 0.24s ease;
}

.person-modal-photo:hover,
.person-modal-photo:focus-within {
  animation: centralWobbleHome 0.9s ease-in-out infinite;
  filter: saturate(1.04);
}

.person-modal-name {
  margin: 0;
}

.person-modal-role {
  margin: 0.2rem 0 0;
  color: #304f78;
  font-weight: 700;
}

.person-modal-bio {
  text-align: left;
  color: #2f3c52;
  line-height: 1.66;
}

.person-modal-bio p {
  margin: 0 0 0.95rem;
}

.person-modal-copy-head {
  display: none;
}

@keyframes personModalExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.08);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(8.2);
    opacity: 0;
  }
}

.framed-photo {
  border-radius: 0;
  overflow: visible;
}

.framed-photo .photo-bg,
.framed-photo .photo-fg {
  border-radius: 50%;
}

.framed-photo .photo-fg {
  width: 92%;
  height: 92%;
}

.person-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wrapper-uvod {
  position: relative;
}

.photo-wrapper {
  position: absolute;
}

.photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.photo-fg {
  position: absolute;
  width: 92%;
  height: 92%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

.wave-top img,
.wave-bottom img {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.wave-top {
  margin-bottom: -1px;
}

.wave-bottom {
  margin-top: -1px;
}

.photo-cloud {
  position: relative;
  width: 100%;
  height: 620px;
}

.p1 {
  top: 7%;
  left: 5%;
  width: 210px;
  height: 210px;
  transform: rotate(-8deg);
}

.p2 {
  top: 14%;
  right: 24%;
  width: 190px;
  height: 190px;
  transform: rotate(7deg);
}

.p3 {
  top: 24%;
  left: 49%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
}

.p4 {
  bottom: 14%;
  left: 17%;
  width: 250px;
  height: 250px;
  transform: rotate(5deg);
}

.p5 {
  bottom: 11%;
  right: 6%;
  width: 220px;
  height: 220px;
  transform: rotate(-6deg);
}

.pohadky-cloud,
.pro-koho-cloud {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: visible;
}

.badge-cloud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: #000;
  border-radius: 50%;
  padding: 12px 20px;
  white-space: nowrap;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s;
}

.badge-cloud:hover {
  transform: scale(1.1);
}

.badge-heading {
  padding: 20px;
}

.value-cloud {
  position: relative;
  width: 100%;
  min-height: 230px;
  margin-top: 1.4rem;
  z-index: 4;
  pointer-events: auto;
}

.value-bubble {
  position: absolute;
  width: var(--value-size, 154px);
  height: var(--value-size, 154px);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease;
  pointer-events: auto;
}

.value-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bubble-frame);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.value-bubble:hover,
.value-bubble:focus-visible {
  transform: translateY(-4px) scale(1.08) rotate(2.2deg);
  z-index: 4;
}

.value-bubble:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.62);
  outline-offset: 3px;
}

.value-bubble-label {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.12;
  font-size: 1.08rem;
  padding: 0.35rem;
  transition: transform 0.22s ease;
}

.value-bubble:nth-child(1) { top: 10%; left: 15%; --value-size: 146px; }
.value-bubble:nth-child(2) { top: 2%; left: 30%; --value-size: 158px; }
.value-bubble:nth-child(3) { top: 10%; left: 45%; --value-size: 150px; }
.value-bubble:nth-child(4) { top: 2%; left: 60%; --value-size: 164px; }
.value-bubble:nth-child(5) { top: 10%; left: 75%; --value-size: 152px; }

.js-value-cloud .value-bubble {
  animation: valueFloat 8.1s ease-in-out infinite;
  transition: transform 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.js-value-cloud .value-bubble:nth-child(1) { animation-duration: 7.3s; animation-delay: -0.5s; }
.js-value-cloud .value-bubble:nth-child(2) { animation-duration: 8.8s; animation-delay: -1.7s; }
.js-value-cloud .value-bubble:nth-child(3) { animation-duration: 7.6s; animation-delay: -1.1s; }
.js-value-cloud .value-bubble:nth-child(4) { animation-duration: 9.1s; animation-delay: -2.3s; }
.js-value-cloud .value-bubble:nth-child(5) { animation-duration: 8.2s; animation-delay: -1.4s; }

@keyframes valueFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-7px) rotate(1.6deg); }
  50% { transform: translateY(-2px) rotate(0deg); }
  75% { transform: translateY(5px) rotate(-1.6deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes valueHoverPop {
  0% { transform: translateY(-8px) rotate(-2deg) scale(1.06); }
  50% { transform: translateY(-12px) rotate(5deg) scale(1.13); }
  100% { transform: translateY(-9px) rotate(-4deg) scale(1.1); }
}

.js-value-cloud .value-bubble:hover,
.js-value-cloud .value-bubble:focus-visible {
  animation: valueHoverPop 0.65s ease-in-out infinite alternate;
  z-index: 6;
  filter: saturate(1.14) brightness(1.04);
  box-shadow: 0 14px 24px rgba(53, 91, 137, 0.22);
}

.js-value-cloud .value-bubble:hover .value-bubble-label,
.js-value-cloud .value-bubble:focus-visible .value-bubble-label {
  transform: rotate(-3deg) scale(1.02);
}

.about-value-cloud.value-cloud {
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: 0.95rem;
  row-gap: 0.3rem;
  max-width: 1080px;
  margin: 1.4rem auto 0;
}

.about-value-cloud .value-bubble {
  position: relative;
  top: auto !important;
  left: auto !important;
  width: var(--value-size, 148px);
  height: var(--value-size, 148px);
}

.about-value-cloud .value-bubble:nth-child(1) { --value-size: 144px; margin-top: 0; }
.about-value-cloud .value-bubble:nth-child(2) { --value-size: 154px; margin-top: 18px; }
.about-value-cloud .value-bubble:nth-child(3) { --value-size: 148px; margin-top: 0; }
.about-value-cloud .value-bubble:nth-child(4) { --value-size: 156px; margin-top: 18px; }
.about-value-cloud .value-bubble:nth-child(5) { --value-size: 150px; margin-top: 0; }
.about-value-cloud .value-bubble:nth-child(6) { --value-size: 152px; margin-top: 18px; }

.pohadky-cloud.value-cloud {
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  max-width: 1120px;
  margin: 1.4rem auto 0;
  padding: 0.35rem 0 0.7rem;
  overflow: visible;
}

.pohadky-cloud .value-bubble {
  position: relative;
  flex: 0 0 auto;
  cursor: default;
  animation: pohadkyFloat 8.2s ease-in-out infinite;
  transition: transform 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.pohadky-cloud .value-bubble:nth-child(1) { --value-size: 116px; margin-top: 0; }
.pohadky-cloud .value-bubble:nth-child(2) { --value-size: 126px; margin-top: 26px; }
.pohadky-cloud .value-bubble:nth-child(3) { --value-size: 120px; margin-top: 0; }
.pohadky-cloud .value-bubble:nth-child(4) { --value-size: 130px; margin-top: 26px; }
.pohadky-cloud .value-bubble:nth-child(5) { --value-size: 122px; margin-top: 0; }
.pohadky-cloud .value-bubble:nth-child(6) { --value-size: 126px; margin-top: 26px; }
.pohadky-cloud .value-bubble:nth-child(7) { --value-size: 118px; margin-top: 0; }

.pohadky-cloud .value-bubble:nth-child(1) { animation-duration: 7.5s; animation-delay: -0.6s; }
.pohadky-cloud .value-bubble:nth-child(2) { animation-duration: 8.7s; animation-delay: -1.7s; }
.pohadky-cloud .value-bubble:nth-child(3) { animation-duration: 7.2s; animation-delay: -0.9s; }
.pohadky-cloud .value-bubble:nth-child(4) { animation-duration: 9.1s; animation-delay: -2.4s; }
.pohadky-cloud .value-bubble:nth-child(5) { animation-duration: 7.9s; animation-delay: -1.2s; }
.pohadky-cloud .value-bubble:nth-child(6) { animation-duration: 8.8s; animation-delay: -2.1s; }
.pohadky-cloud .value-bubble:nth-child(7) { animation-duration: 7.7s; animation-delay: -1.4s; }

@keyframes pohadkyFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-7px) rotate(1.6deg); }
  50% { transform: translateY(-2px) rotate(0deg); }
  75% { transform: translateY(5px) rotate(-1.6deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pohadkyHoverPop {
  0% { transform: translateY(-8px) rotate(-2deg) scale(1.06); }
  50% { transform: translateY(-12px) rotate(5deg) scale(1.13); }
  100% { transform: translateY(-9px) rotate(-4deg) scale(1.1); }
}

.pohadky-cloud .value-bubble:hover,
.pohadky-cloud .value-bubble:focus-visible {
  animation: pohadkyHoverPop 0.65s ease-in-out infinite alternate;
  z-index: 6;
  filter: saturate(1.14) brightness(1.04);
  box-shadow: 0 14px 24px rgba(53, 91, 137, 0.22);
}

.pohadky-cloud .value-bubble:hover .value-bubble-label,
.pohadky-cloud .value-bubble:focus-visible .value-bubble-label {
  transform: rotate(-3deg) scale(1.02);
}

.divadlo-pohadky-cloud.value-cloud {
  min-height: auto;
}

.divadlo-pohadky-cloud .value-bubble:nth-child(1) { --value-size: 124px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(2) { --value-size: 134px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(3) { --value-size: 128px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(4) { --value-size: 138px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(5) { --value-size: 130px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(6) { --value-size: 134px; }
.divadlo-pohadky-cloud .value-bubble:nth-child(7) { --value-size: 126px; }

.pohadky-cloud .value-bubble .value-bubble-label {
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  line-height: 1.08;
  padding: 0.42rem;
}

.divadlo-pohadky-cloud .value-bubble .value-bubble-label {
  font-size: clamp(0.76rem, 0.84vw, 0.88rem);
}

.value-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(24, 37, 56, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overscroll-behavior: contain;
}

.value-modal-bubble {
  position: relative;
  width: min(560px, 92vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.value-modal-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bubble-frame);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

.value-modal-bubble-inner {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  margin: 12% auto 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 1.3rem 1.55rem;
}

.value-modal-close {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.value-modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.value-modal-logo {
  display: block;
  margin-bottom: 0.7rem;
  max-width: 130px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.value-modal-title {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.32rem, 1.9vw, 1.6rem);
  font-weight: 700;
}

.value-modal-text {
  margin: 0.65rem 0 0;
  font-size: clamp(1.12rem, 1.42vw, 1.28rem);
  line-height: 1.5;
}

.contact-intro-copy {
  min-height: 200px;
}

.contact-form {
  max-width: 720px;
}

.contact-alert {
  max-width: 860px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  border: 0;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 8px 18px rgba(33, 56, 89, 0.12);
}

.contact-alert.alert-success {
  background: #d6f4e4;
  color: #1f7f58;
}

.contact-alert.alert-danger {
  background: #fde1e1;
  color: #b54242;
}

.contact-primary-box {
  background: #f3dfc1;
  border-radius: var(--radius-md);
  padding: 1.9rem 2rem;
  --contact-accent: #304f78;
  --contact-hover-accent: #b62063;
  --contact-icon-filter: none;
  --contact-hover-filter: invert(20%) sepia(54%) saturate(2460%) hue-rotate(305deg) brightness(89%) contrast(90%);
}

.contact-lead {
  color: #2f3c52;
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact-main-list {
  display: grid;
  gap: 0.55rem;
}

.contact-main-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--contact-accent);
  font-weight: 700;
  font-size: 1.12rem;
}

.contact-main-item:hover {
  color: var(--contact-hover-accent);
  text-decoration: none;
}

.contact-main-item:focus-visible,
.contact-social-row a:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}

.contact-main-item:hover img,
.contact-main-item:focus img,
.contact-social-row a:hover img,
.contact-social-row a:focus img {
  filter: var(--contact-hover-filter);
}

.contact-main-item img,
.contact-social-row img {
  filter: var(--contact-icon-filter);
}

.contact-main-item img {
  width: 24px;
  height: 24px;
}

.contact-main-item-email {
  font-size: 1.3rem;
}

.contact-main-item-email img {
  width: 40px;
  height: 40px;
}

.contact-prefer-note {
  margin-left: 0.45rem;
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
  opacity: 0.9;
}

.contact-email-note {
  margin: 0.15rem 0 0.2rem 3rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(47, 79, 120, 0.92);
}

.contact-social-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--contact-accent);
  font-weight: 600;
}

.contact-social-row a:hover,
.contact-social-row a:focus {
  color: var(--contact-hover-accent);
  text-decoration: none;
}

.contact-response {
  margin-top: 0.95rem;
  color: #355b89;
  font-size: 0.96rem;
}

.footer-brno-logo {
  display: block;
  width: min(220px, 78vw);
  height: auto;
  margin: 0.7rem auto 1.1rem;
  object-fit: contain;
}

.contact-form-shell {
  background: #d1eeec;
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem 1.6rem;
}

.value-swipe-hint {
  display: none;
  text-align: center;
}

.value-click-hint {
  display: none;
  text-align: center;
  margin: 0.1rem 0 0.7rem;
  font-size: 0.86rem;
  color: #2f4f78;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-form-note {
  color: #355b89;
}

.contact-form .form-label {
  font-weight: 700;
  color: #304f78;
}

.contact-form .form-control {
  border-radius: 14px;
  border: 1px solid rgba(73, 110, 151, 0.3);
  padding: 0.72rem 0.85rem;
}

.contact-form .form-control:focus {
  border-color: #6d9fd8;
  box-shadow: 0 0 0 0.2rem rgba(109, 159, 216, 0.2);
}

.contact-submit-btn {
  background-color: #b62063;
  border-color: #b62063;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus {
  background-color: #9d1b55;
  border-color: #9d1b55;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(182, 32, 99, 0.3);
  filter: saturate(1.08);
}

.contact-submit-btn:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.7);
  outline-offset: 3px;
}

.about-intro-box {
  background: #f3dfc1;
  border-radius: var(--radius-md);
  padding: 1.9rem 2rem;
  color: #2f3c52;
  font-size: 1.08rem;
  line-height: 1.6;
}

.divadlo-intro-box {
  background: #f3dfc1;
  border-radius: var(--radius-md);
  padding: 1.9rem 2rem;
  color: #2f3c52;
  font-size: 1.16rem;
  line-height: 1.65;
}

.show-card {
  background: var(--show-card-bg, #d1eeec);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem 1.35rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.show-card:hover,
.show-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: var(--show-card-bg-hover, #c5e8e5);
}

.show-card:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 3px;
}

.show-card-tagline {
  color: #304f78;
}

.show-photo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.show-photo-gallery {
  position: absolute;
  inset: -18px;
  pointer-events: none;
  z-index: 4;
}

.show-photo-thumb {
  position: absolute;
  width: var(--thumb-size, 78px);
  height: var(--thumb-size, 78px);
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.show-photo-thumb:hover,
.show-photo-thumb:focus-visible {
  animation: centralWobbleHome 0.9s ease-in-out infinite;
  filter: saturate(1.08);
}

.show-photo-thumb:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.6);
  outline-offset: 3px;
}

.show-photo-thumb.is-active {
  transform: scale(1.08);
}

.show-photo-thumb-frame,
.show-photo-thumb-image {
  position: absolute;
  border-radius: 50%;
}

.show-photo-thumb-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-photo-thumb-image {
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.show-photo-gallery .show-photo-thumb:nth-child(1) { --thumb-size: 68px; top: 3%; left: -14%; }
.show-photo-gallery .show-photo-thumb:nth-child(2) { --thumb-size: 62px; top: -11%; left: 18%; }
.show-photo-gallery .show-photo-thumb:nth-child(3) { --thumb-size: 72px; top: -10%; right: 24%; }
.show-photo-gallery .show-photo-thumb:nth-child(4) { --thumb-size: 66px; top: 38%; right: -18%; }
.show-photo-gallery .show-photo-thumb:nth-child(5) { --thumb-size: 70px; bottom: -4%; right: -5%; }

.show-orb {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: var(--show-orb-bg, #5b8fd9);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(45, 80, 121, 0.26);
  padding: 0.42rem 0.72rem 0.48rem;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.show-orb-duration {
  top: 16%;
  right: -12%;
  transform: rotate(-8deg);
}

.show-orb-age {
  bottom: 10%;
  left: -13%;
  transform: rotate(8deg);
}

.show-modal {
  position: fixed;
  inset: 0;
  z-index: 1075;
  background: rgba(24, 37, 56, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  overscroll-behavior: contain;
}

.show-modal::before {
  content: '';
  position: absolute;
  left: var(--expand-x, 50%);
  top: var(--expand-y, 50%);
  width: 28vmax;
  height: 28vmax;
  border-radius: 50%;
  background: var(--show-modal-expand-bg, #d9e7f8);
  transform: translate(-50%, -50%) scale(0.08);
  opacity: 0;
  pointer-events: none;
}

.show-modal.is-open::before {
  animation: showModalExpand 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.show-modal-card {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  background: var(--show-modal-bg, #f4f7fb);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(73, 110, 151, 0.28);
  box-shadow: var(--shadow-modal);
  padding: 1.5rem 1.7rem 1.6rem;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
  scrollbar-gutter: stable;
}

.show-modal.is-open .show-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.show-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  color: #304f78;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.show-modal-close:focus-visible {
  outline: 2px solid rgba(47, 79, 120, 0.7);
  outline-offset: 2px;
}

.show-modal-head {
  position: relative;
  text-align: center;
  padding: 0.35rem 0 1.1rem;
}

.show-modal-gallery {
  position: static;
  width: min(420px, 100%);
  height: auto;
  margin: 0.55rem auto 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  pointer-events: auto;
  z-index: 4;
}

.show-modal-gallery .show-photo-thumb {
  position: static;
  pointer-events: auto;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
}

.show-modal-photo {
  width: 300px;
  height: 300px;
  margin: 0 auto 0.9rem;
  cursor: zoom-in;
  transition: filter 0.24s ease;
}

.show-modal-photo:hover,
.show-modal-photo:focus-within {
  animation: centralWobbleHome 0.9s ease-in-out infinite;
  filter: saturate(1.04);
}

.show-modal-name {
  margin: 0;
}

.show-modal-tagline {
  margin: 0.25rem 0 0;
  color: #304f78;
  font-weight: 700;
}

.show-modal-detail {
  text-align: left;
  color: #2f3c52;
  line-height: 1.66;
}

.show-modal-detail p {
  margin: 0 0 0.95rem;
}

.show-modal-copy-head {
  display: none;
}

@keyframes showModalExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.08);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(8.2);
    opacity: 0;
  }
}

.show-cta {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background: #d1eeec;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2.1rem;
}

.show-cta p {
  color: #304f78;
  font-size: 1.05rem;
}

.pending-teaser {
  max-width: 760px;
  margin: 0 auto;
  background: #d1eeec;
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.4rem 2rem;
}

.pending-teaser p {
  color: #304f78;
  font-size: 1.06rem;
}

.about-title-tilt {
  display: inline-block;
  transform: rotate(-1.8deg);
}

.section-title-match {
  font-size: clamp(2.2rem, 4.3vw, 3.15rem);
  line-height: 1.04;
}

@media (max-width: 992px) {
  body.homepage {
    padding-top: 92px;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .homepage-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 0.9rem;
    place-items: center;
    align-content: start;
    padding: 1rem 1rem 1.4rem;
    min-height: calc(100dvh - 92px);
    overflow-y: auto;
  }

  .planet-item {
    position: static;
    width: 100%;
    height: auto;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.35rem 0.55rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(125, 169, 216, 0.32);
  }

  .homepage-wrapper .planet-item[class*="orb-"] {
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    animation: none !important;
    transform: none !important;
  }

  .planet-item--pending {
    position: relative;
  }

  .planet-coming {
    top: 18%;
    font-size: 0.58rem;
    padding: 0.06rem 0.38rem 0.1rem;
  }

  .planet {
    transform: none !important;
    width: 88px;
    height: 88px;
  }

  .planet-orbit {
    display: none;
  }

  .central {
    display: none;
  }

  .homepage-video-trigger {
    display: none;
  }

  .planet-label {
    display: block;
    margin-top: 0.28rem;
    text-align: center;
    font-family: 'Baloo 2', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2f4f78;
    text-decoration: none;
  }

  .hero-photo {
    width: 320px;
    height: 320px;
  }

  .pomoc-heart-photo {
    width: min(320px, 100%);
  }

  .person-photo {
    width: 260px;
    height: 260px;
  }

  .person-photo-lg {
    width: 280px;
    height: 280px;
  }

  .person-ig-orb {
    right: -7%;
    top: 7%;
  }

  .photo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    height: auto;
  }

  .photo-wrapper {
    position: static;
    margin: 10px auto;
    width: 160px;
    height: 160px;
    transform: none !important;
  }

  .about-intro-box {
    font-size: 1.04rem;
    line-height: 1.6;
    padding: 1.5rem 1.6rem;
    border-radius: 20px;
  }

  .divadlo-intro-box {
    font-size: 1.04rem;
    line-height: 1.6;
    padding: 1.5rem 1.6rem;
    border-radius: 20px;
  }

  .contact-primary-box {
    padding: 1.5rem 1.6rem;
    border-radius: 20px;
  }

  .contact-main-item {
    font-size: 1.02rem;
  }

  .contact-social-row {
    justify-content: center;
  }

  .contact-form-shell {
    border-radius: 22px;
    padding: 1.3rem 0.9rem 1.15rem;
  }

  .show-card {
    border-radius: 22px;
    padding: 1.15rem 0.9rem 1.05rem;
  }

  .show-orb {
    font-size: 0.8rem;
    padding: 0.33rem 0.56rem 0.38rem;
  }

  .show-photo-gallery {
    position: static;
    inset: auto;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    pointer-events: auto;
  }

  .show-photo-gallery .show-photo-thumb,
  .show-modal-gallery .show-photo-thumb {
    position: static;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
  }

  .show-modal-gallery {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    min-height: 0;
    width: 100%;
    margin: 0.2rem auto 0.65rem;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 0.05rem 0 0.3rem;
    -webkit-overflow-scrolling: touch;
  }

  .show-modal-gallery .show-photo-thumb {
    width: 54px;
    height: 54px;
    --thumb-size: 54px;
  }

  .show-modal-gallery .show-photo-thumb-frame {
    display: none;
  }

  .show-modal-gallery .show-photo-thumb-image {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 50%;
    object-fit: cover;
  }

  .show-orb-duration {
    top: 14%;
    right: -8%;
  }

  .show-orb-age {
    bottom: 8%;
    left: -9%;
  }

  .show-cta {
    border-radius: 22px;
    padding: 1.5rem 1rem 1.6rem;
  }

  .value-swipe-hint {
    display: block;
    margin: 0.1rem 0 0.7rem;
    font-size: 0.82rem;
    color: #2f4f78;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .section-title-match {
    font-size: clamp(2rem, 8.6vw, 2.55rem);
  }

  .pending-teaser {
    border-radius: 22px;
    padding: 1.45rem 1rem 1.55rem;
  }

  .divadlo-pohadky-cloud .value-bubble {
    width: 136px !important;
    height: 136px !important;
    flex: 0 0 136px;
    min-width: 136px;
  }
}

@media (min-width: 993px) {
  .value-click-hint {
    display: block;
  }

  .show-modal-card {
    width: min(1440px, 98vw);
    max-height: min(95vh, 1100px);
    display: grid;
    grid-template-columns: minmax(360px, 33%) minmax(0, 1fr);
    gap: 2.5rem;
    overflow: hidden;
    padding: 2.2rem 2.6rem 2.2rem;
  }

  .show-modal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0 0;
  }

  .show-modal-photo {
    width: min(330px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.65rem;
  }

  .show-modal-name,
  .show-modal-tagline {
    display: none;
  }

  .show-modal-detail {
    align-self: stretch;
    overflow-y: auto;
    max-height: calc(95vh - 3.6rem);
    padding: 0.15rem 0.9rem 0 0.15rem;
  }

  .show-modal-copy-head {
    display: block;
    margin: 0 0 1rem;
  }

  .show-modal-copy-title {
    margin: 0;
    font-size: clamp(2.15rem, 2.55vw, 3rem);
    line-height: 1.03;
    transform-origin: left top;
  }

  .show-modal-copy-tagline {
    margin: 0.5rem 0 0;
    font-size: 1.22rem;
    line-height: 1.45;
    color: #304f78;
    font-weight: 700;
  }

  .show-modal-copy-body {
    color: #2f3c52;
    font-size: 1.22rem;
    line-height: 1.7;
  }

  .show-modal-copy-body p {
    margin: 0 0 1.05rem;
  }

  .show-modal-copy-body li {
    margin: 0.26rem 0;
  }

  .show-modal-gallery {
    position: static !important;
    width: min(360px, 100%);
    margin: 0.7rem auto 0.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(62px, 62px));
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    pointer-events: auto;
    overflow: visible;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .show-modal-gallery .show-photo-thumb {
    position: static !important;
    justify-self: auto;
    width: 62px;
    height: 62px;
    --thumb-size: 62px;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    margin: 0;
  }

  .show-modal-gallery .show-photo-thumb:nth-child(n) { --thumb-size: 62px; }

  .show-modal-gallery .show-photo-thumb-frame {
    display: none;
  }

  .show-modal-gallery .show-photo-thumb-image {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 50%;
    object-fit: cover;
  }

  .person-modal-card {
    width: min(1440px, 98vw);
    max-height: min(95vh, 1100px);
    display: grid;
    grid-template-columns: minmax(360px, 33%) minmax(0, 1fr);
    gap: 2.5rem;
    overflow: hidden;
    padding: 2.2rem 2.6rem 2.2rem;
  }

  .person-modal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0 0;
  }

  .person-modal-photo {
    width: min(330px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.65rem;
  }

  .person-modal-gallery {
    width: min(420px, 100%);
    margin: 0.55rem auto 0.2rem;
    gap: 0.5rem;
  }

  .person-photo-thumb {
    width: 62px;
    height: 62px;
  }

  .person-modal-name,
  .person-modal-role {
    display: none;
  }

  .person-modal-bio {
    align-self: stretch;
    overflow-y: auto;
    max-height: calc(95vh - 3.6rem);
    padding: 0.15rem 0.9rem 0 0.15rem;
  }

  .person-modal-copy-head {
    display: block;
    margin: 0 0 1rem;
  }

  .person-modal-copy-title {
    margin: 0;
    font-size: clamp(2.15rem, 2.55vw, 3rem);
    line-height: 1.03;
    transform-origin: left top;
  }

  .person-modal-copy-role {
    margin: 0.5rem 0 0;
    font-size: 1.22rem;
    line-height: 1.45;
    color: #304f78;
    font-weight: 700;
  }

  .person-modal-copy-body {
    color: #2f3c52;
    font-size: 1.22rem;
    line-height: 1.7;
  }

  .person-modal-copy-body p {
    margin: 0 0 1.05rem;
  }

  body.homepage {
    padding-top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .homepage-wrapper {
    height: 100vh;
    min-height: 100vh;
  }
}

@media (max-width: 991px) {
  .contact-main-list {
    justify-items: center;
  }

  .contact-main-item-email,
  .contact-main-item-phone {
    justify-content: center;
    text-align: center;
  }

  .contact-main-item-email span,
  .contact-main-item-phone span {
    text-align: center;
  }

  body.inner-page {
    background-attachment: scroll;
    background-size: 200% auto;
    background-repeat: repeat-y;
    background-position: center top;
    background-color: #f5f5f5;
  }

  body.page-mikulas.inner-page {
    background-image: url('_theme/bg_mikulas.png');
    background-attachment: scroll;
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 200% auto;
    background-color: #ffffff;
  }

  section {
    padding: 70px 0;
  }

  .photo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    height: auto;
  }

  .photo-wrapper {
    position: static;
    margin: 10px auto;
    width: 140px;
    height: 140px;
  }

  .photo-fg {
    width: 80%;
    height: 80%;
  }

  .hero-photo {
    width: 250px;
    height: 250px;
  }

  .pomoc-heart-photo {
    width: min(280px, 100%);
  }

  .framed-photo .photo-fg {
    width: 91%;
    height: 91%;
  }

  .person-photo {
    width: 220px;
    height: 220px;
  }

  .person-photo-lg {
    width: 248px;
    height: 248px;
  }

  .person-ig-orb {
    right: -6%;
    top: 6%;
  }

  .person-card {
    padding: 1.15rem 0.9rem 1.05rem;
    border-radius: 22px;
  }

  .pohadky-cloud,
  .pro-koho-cloud {
    min-height: initial;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .badge-cloud {
    position: static !important;
    width: auto !important;
    height: auto !important;
    border-radius: 999px;
    aspect-ratio: auto;
  }

  .value-cloud {
    min-height: initial;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.5rem 0.6rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .value-bubble {
    position: relative;
    width: 120px !important;
    height: 120px !important;
    flex: 0 0 120px;
    scroll-snap-align: center;
    aspect-ratio: 1 / 1;
    min-width: 120px;
    min-height: 0 !important;
    max-width: none;
    border-radius: 50%;
    overflow: hidden;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .value-bubble:hover,
  .value-bubble:focus-visible {
    transform: none !important;
  }

  .mikulas-value-cloud.value-cloud {
    min-height: initial;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    overflow: visible;
    padding: 0.25rem 0;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
  }

  .mikulas-value-cloud .value-bubble {
    width: 128px !important;
    height: 128px !important;
    flex: 0 0 128px;
    min-width: 128px;
    scroll-snap-align: unset;
  }

  .value-bubble-label {
    font-size: 0.82rem;
  }

  .reference-cloud {
    min-height: initial;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.5rem 0.6rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .reference-bubble {
    position: relative;
    transform: none !important;
    width: 120px !important;
    height: 120px !important;
    flex: 0 0 120px;
    scroll-snap-align: center;
    aspect-ratio: 1 / 1;
    min-width: 120px;
    min-height: 0 !important;
    max-width: none;
    border-radius: 50%;
    overflow: hidden;
    left: auto !important;
    top: auto !important;
  }

  .reference-bubble:hover,
  .reference-bubble:focus-visible {
    transform: none !important;
  }

  .reference-bubble-inner {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem;
  }

  .reference-bubble-text {
    display: none;
  }

  .reference-bubble-meta {
    margin-top: 0;
    justify-content: center;
    text-align: center;
  }

  .reference-bubble-meta strong {
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .reference-modal-bubble {
    width: min(94vw, 460px);
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    background: var(--bubble-color, #6d9fd8);
    padding: 1.2rem 1.15rem 1.1rem;
  }

  .reference-modal-bubble::before {
    display: none;
  }

  .reference-modal-bubble-inner {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
  }

  .reference-modal-close {
    top: 0.55rem;
    right: 0.55rem;
  }

  .reference-modal-text {
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .reference-modal-author {
    margin-top: 0.7rem;
    font-size: 1.1rem;
  }

  .hero-video-play {
    width: 78px;
    height: 78px;
    top: 50%;
    left: 50%;
  }

  .hero-video-play::before {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 23px;
  }

  .homepage-video-trigger::before {
    width: 92px;
    height: 92px;
  }

  .homepage-video-trigger::after {
    border-top-width: 16px;
    border-bottom-width: 16px;
    border-left-width: 26px;
  }

  .video-modal {
    padding: 1rem 0.6rem;
    align-items: flex-start;
  }

  .video-modal-card {
    border-radius: 24px;
    padding: 1.15rem 1rem 1rem;
    margin-top: 0.5rem;
  }

  .video-modal-player-wrap {
    min-height: 220px;
  }

  .video-modal-loading-text {
    font-size: 1.05rem;
  }

  .video-modal-spinner {
    width: 48px;
    height: 48px;
  }

  .video-modal-title {
    margin-right: 2.6rem;
    margin-bottom: 0.85rem;
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .value-modal-bubble {
    width: min(94vw, 460px);
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    background: var(--bubble-color, #6d9fd8);
    padding: 1.15rem;
  }

  .value-modal-bubble::before {
    display: none;
  }

  .value-modal-bubble-inner {
    width: 100%;
    height: auto;
    margin-top: 0;
    border-radius: 16px;
    padding: 1rem 0.9rem;
  }

  .value-modal-close {
    top: 0.45rem;
    right: 0.45rem;
  }

  .value-modal-title {
    font-size: 1.2rem;
  }

  .value-modal-text {
    font-size: 1.06rem;
    line-height: 1.45;
  }

  .person-modal-card {
    width: 100%;
    max-height: min(92vh, 900px);
    border-radius: 18px;
    padding: 1.2rem 1.1rem 1.2rem;
  }

  .person-modal {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: calc(92px + env(safe-area-inset-top, 0px) + 0.45rem) 0.45rem 0.9rem;
  }

  .person-modal-photo {
    width: 230px;
    height: 230px;
    margin-bottom: 0.7rem;
  }

  .person-modal-gallery {
    width: min(420px, 100%);
    margin: 0.55rem auto 0.35rem;
    gap: 0.38rem;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
  }

  .person-photo-thumb {
    width: 66px;
    height: 66px;
  }

  .person-modal-name {
    font-size: 1.52rem;
  }

  .person-modal-bio {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .show-modal-card {
    width: 100%;
    max-height: min(92vh, 900px);
    border-radius: 18px;
    padding: 1.2rem 1.1rem 1.2rem;
  }

  .show-modal {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: calc(92px + env(safe-area-inset-top, 0px) + 0.45rem) 0.45rem 0.9rem;
  }

  .show-modal-photo {
    width: 230px;
    height: 230px;
    margin-bottom: 0.7rem;
  }

  .show-modal-name {
    font-size: 1.45rem;
  }

  .show-modal-detail {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-right,
  .footer-copy {
    align-items: center;
    text-align: center;
  }

  .footer-copy-line {
    display: block;
    margin: 0.08rem 0;
  }

  .footer-copy-sep {
    display: none;
  }

  .footer-thanks {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    padding: 0 0.8rem;
  }

  .homepage-copy {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 420px);
    margin: 0.15rem auto 1.1rem;
    font-size: 0.88rem;
    padding: 0 1.1rem;
    text-align: center;
  }

  .homepage-copy-line {
    display: block;
    margin: 0.06rem auto;
    text-align: center;
  }

  .homepage-copy-sep {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .value-bubble:hover,
  .value-bubble:focus-visible {
    transform: none;
  }

  .reference-bubble:hover,
  .reference-bubble:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
