:root {
  --fxh-bg: #ffffff;
  --fxh-text: #111111;
  --fxh-muted: #626262;
  --fxh-border: rgba(17, 17, 17, .14);
  --fxh-panel: #ffffff;
  --fxh-shadow: 0 18px 50px rgba(17, 17, 17, .12);
  --fxh-yellow: #ffd400;
  --fxh-black: #090909;
}

html[data-theme="dark"] {
  --fxh-bg: #12151c;
  --fxh-text: #f5f5f5;
  --fxh-muted: #b8bfcc;
  --fxh-border: rgba(255, 255, 255, .16);
  --fxh-panel: #171b24;
  --fxh-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

.fxh-header,
.fxh-header *,
.fxh-menu-only,
.fxh-menu-only * {
  box-sizing: border-box;
}

.fxh-header {
  width: min(100%, 1180px);
  min-height: 68px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1000;
  color: var(--fxh-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fxh-menu-only {
  position: fixed;
  top: 14px;
  right: max(18px, env(safe-area-inset-right));
  z-index: 2000;
  color: var(--fxh-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fxh-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fxh-text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -0.045em;
  font-size: 1.45rem;
  line-height: 1;
}

.fxh-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.fxh-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.fxh-menu {
  position: relative;
}

.fxh-menu summary {
  list-style: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--fxh-border);
  border-radius: 16px;
  background: var(--fxh-panel);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .07);
}

.fxh-menu summary::-webkit-details-marker {
  display: none;
}

.fxh-hamburger,
.fxh-hamburger::before,
.fxh-hamburger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--fxh-text);
}

.fxh-hamburger::before {
  transform: translateY(-7px);
}

.fxh-hamburger::after {
  transform: translateY(5px);
}

.fxh-menu-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(86vw, 320px);
  padding: 14px;
  border: 1px solid var(--fxh-border);
  border-radius: 22px;
  background: var(--fxh-panel);
  box-shadow: var(--fxh-shadow);
}

.fxh-menu-title {
  margin: 0 0 10px;
  color: var(--fxh-muted);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fxh-menu-title--spaced {
  margin-top: 12px;
}

.fxh-menu-link,
.fxh-theme-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 12px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--fxh-text);
  text-decoration: none;
  font: inherit;
  font-weight: 730;
  cursor: pointer;
  text-align: left;
}

.fxh-menu-link:hover,
.fxh-theme-button:hover {
  background: rgba(128, 128, 128, .12);
}

.fxh-lang {
  display: flex;
  gap: 8px;
  padding: 8px 10px 4px;
}

.fxh-lang a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--fxh-border);
  border-radius: 999px;
  padding: 8px 0;
  font-weight: 850;
  color: var(--fxh-muted);
}

.fxh-lang a.is-active {
  background: var(--fxh-black);
  color: var(--fxh-yellow);
  border-color: var(--fxh-black);
}

html[data-theme="dark"] .fxh-lang a.is-active {
  background: var(--fxh-yellow);
  color: var(--fxh-black);
  border-color: var(--fxh-yellow);
}

@media (min-width: 720px) {
  .fxh-header {
    padding-inline: 30px;
  }

  .fxh-menu-only {
    right: max(30px, env(safe-area-inset-right));
  }
}


.fxh-logo-img--darkmode {
  display: none;
}

html[data-theme="dark"] .fxh-logo-img--lightmode {
  display: none;
}

html[data-theme="dark"] .fxh-logo-img--darkmode {
  display: block;
}


/* fixnow-document-mascot-logo-everywhere */
.fxh-logo--document {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.fxh-document-logo {
  display: block;
  width: clamp(104px, 24vw, 138px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.fxh-document-logo--darkmode {
  display: none;
}

html[data-theme="dark"] .fxh-document-logo--lightmode {
  display: none;
}

html[data-theme="dark"] .fxh-document-logo--darkmode {
  display: block;
}

/* staré logo prvky už v shared headeri nechceme zobrazovať, keby niekde ostali */
.fxh-logo--document .fxh-logo-mark,
.fxh-logo--document .fxh-logo-text,
.fxh-logo--document .fxh-logo-img {
  display: none !important;
}



/* fixnow-exact-legal-logo-everywhere */
.fxh-logo--legal {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  text-decoration: none;
}

.fxh-legal-logo {
  display: block;
  width: clamp(72px, 18vw, 96px);
  height: auto;
  max-width: none;
  object-fit: contain;
}

.fxh-legal-logo--darkmode {
  display: none;
}

html[data-theme="dark"] .fxh-legal-logo--lightmode {
  display: none;
}

html[data-theme="dark"] .fxh-legal-logo--darkmode {
  display: block;
}

@media (min-width: 720px) {
  .fxh-legal-logo {
    width: 92px;
  }
}

/* poistka proti starým shared-logo prvkom */
.fxh-logo--legal .fxh-logo-mark,
.fxh-logo--legal .fxh-logo-text,
.fxh-logo--legal .fxh-logo-img,
.fxh-logo--legal .fxh-document-logo {
  display: none !important;
}



/* fixnow-viewport-based-header */
.fxh-header {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 16px max(22px, env(safe-area-inset-left)) 12px max(22px, env(safe-area-inset-right)) !important;
  align-items: flex-start !important;
}

.fxh-header .fxh-menu {
  margin-top: 4px;
}

.fxh-legal-logo {
  width: clamp(84px, 8vw, 108px) !important;
  height: auto !important;
  max-height: none !important;
}

@media (min-width: 720px) {
  .fxh-header {
    padding-left: clamp(28px, 4vw, 54px) !important;
    padding-right: clamp(28px, 4vw, 54px) !important;
  }

  .fxh-legal-logo {
    width: 104px !important;
  }
}



/* fixnow-header-modes-contained */
.fxh-header--contained {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 22px 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  align-items: flex-start !important;
}

.fxh-header--contained .fxh-menu {
  margin-top: 4px !important;
}

.fxh-header--contained .fxh-menu-panel {
  right: 0 !important;
}

.fxh-header--contained .fxh-legal-logo {
  width: clamp(82px, 11vw, 104px) !important;
  height: auto !important;
  max-height: none !important;
}

.fxh-header--contained .fxh-document-logo {
  width: clamp(82px, 11vw, 104px) !important;
  height: auto !important;
  max-height: none !important;
}

.fxh-header--contained .fxh-logo {
  flex: 0 0 auto !important;
}

@media (max-width: 720px) {
  .fxh-header--contained {
    padding-bottom: 18px !important;
  }

  .fxh-header--contained .fxh-legal-logo,
  .fxh-header--contained .fxh-document-logo {
    width: 86px !important;
  }
}



/* fixnow-brutal-dark-toggle */
.fxh-theme-button--fixnow {
  margin-top: 8px;
  padding: 10px;
  min-height: 64px;
  border: 1px solid rgba(255, 212, 0, .58);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, .28), transparent 42%),
    linear-gradient(135deg, rgba(255, 212, 0, .16), rgba(255, 212, 0, .04));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 12px 28px rgba(255, 212, 0, .16);
}

.fxh-theme-button--fixnow:hover {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, .38), transparent 44%),
    linear-gradient(135deg, rgba(255, 212, 0, .24), rgba(255, 212, 0, .08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 16px 38px rgba(255, 212, 0, .24);
}

.fxh-theme-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fxh-theme-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #090909;
  color: #ffd400;
  font-size: .68rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fxh-theme-label {
  color: var(--fxh-text);
  font-size: .98rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.fxh-theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: #090909;
  border: 1px solid rgba(255, 212, 0, .72);
  box-shadow:
    inset 0 0 18px rgba(255, 212, 0, .18),
    0 0 24px rgba(255, 212, 0, .18);
  overflow: hidden;
}

.fxh-theme-sun,
.fxh-theme-moon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 950;
  color: rgba(255, 255, 255, .72);
}

.fxh-theme-sun {
  color: #ffd400;
}

.fxh-theme-knob {
  position: absolute;
  z-index: 3;
  left: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd400, #ffb700);
  color: #090909;
  font-size: .95rem;
  font-weight: 950;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .16),
    0 0 22px rgba(255, 212, 0, .76);
  transition: transform .20s ease, background .20s ease, box-shadow .20s ease;
}

html[data-theme="dark"] .fxh-theme-button--fixnow {
  border-color: rgba(255, 212, 0, .88);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 212, 0, .24), transparent 42%),
    linear-gradient(135deg, rgba(255, 212, 0, .08), rgba(21, 24, 33, .98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 0 34px rgba(255, 212, 0, .22);
}

html[data-theme="dark"] .fxh-theme-kicker {
  background: #ffd400;
  color: #090909;
}

html[data-theme="dark"] .fxh-theme-switch {
  background: linear-gradient(135deg, #111827, #020617);
  box-shadow:
    inset 0 0 22px rgba(255, 212, 0, .22),
    0 0 30px rgba(255, 212, 0, .30);
}

html[data-theme="dark"] .fxh-theme-knob {
  transform: translateX(44px);
  background: linear-gradient(135deg, #ffffff, #ffd400);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25),
    0 0 28px rgba(255, 212, 0, .92);
}

html[data-theme="dark"] .fxh-theme-sun {
  color: rgba(255, 255, 255, .58);
}

html[data-theme="dark"] .fxh-theme-moon {
  color: #ffd400;
}

@media (prefers-reduced-motion: reduce) {
  .fxh-theme-knob {
    transition: none;
  }
}

