/* Theme tokens */
:root {
  --bd-scheme: light;
  --bd-bg: #f0f4ff;
  --bd-page-bg: #f0f4ff;
  --bd-panel-bg: #ffffff;
  --bd-panel-muted: #f5f5f5;
  --bd-panel-deep: #f5f5f5;
  --bd-text: #000000;
  --bd-text-strong: #000000;
  --bd-text-soft: rgba(0, 0, 0, 0.74);
  --bd-text-muted: rgba(0, 0, 0, 0.5);
  --bd-text-faint: rgba(0, 0, 0, 0.34);
  --bd-line: rgba(0, 0, 0, 0.13);
  --bd-line-soft: rgba(0, 0, 0, 0.08);
  --bd-surface: rgba(0, 0, 0, 0.04);
  --bd-surface-strong: rgba(0, 0, 0, 0.07);
  --bd-surface-hover: rgba(0, 0, 0, 0.11);
  --bd-header-bg: transparent;
  --bd-overlay-bg: rgba(240, 244, 255, 0.96);
  --bd-accent: #F2542D;
  --bd-accent-hover: #d4421d;
  --bd-accent-soft: rgba(242, 84, 45, 0.16);
  --bd-accent-text: #ff704d;
  --bd-on-accent: #ffffff;
  --bd-shadow-soft: rgba(0, 0, 0, 0.12);
  --bd-shadow-strong: rgba(0, 0, 0, 0.34);
  color-scheme: var(--bd-scheme);
}

html[data-theme="dark"] {
  --bd-scheme: dark;
  --bd-bg: #080b12;
  --bd-page-bg: #0d111a;
  --bd-panel-bg: rgba(18, 23, 34, 0.9);
  --bd-panel-muted: rgba(15, 20, 30, 0.96);
  --bd-panel-deep: rgba(12, 16, 24, 0.98);
  --bd-text: #f4f7ff;
  --bd-text-strong: #f8faff;
  --bd-text-soft: rgba(244, 247, 255, 0.76);
  --bd-text-muted: rgba(244, 247, 255, 0.58);
  --bd-text-faint: rgba(244, 247, 255, 0.36);
  --bd-line: rgba(255, 255, 255, 0.13);
  --bd-line-soft: rgba(255, 255, 255, 0.1);
  --bd-surface: rgba(255, 255, 255, 0.07);
  --bd-surface-strong: rgba(255, 255, 255, 0.1);
  --bd-surface-hover: rgba(255, 255, 255, 0.16);
  --bd-header-bg: rgba(8, 11, 18, 0.36);
  --bd-overlay-bg: rgba(8, 11, 18, 0.96);
  --bd-shadow-soft: rgba(0, 0, 0, 0.22);
  --bd-shadow-strong: rgba(0, 0, 0, 0.34);
  --color-black: var(--bd-text);
  background: var(--bd-bg) !important;
}

/* Dark export overrides */
html[data-theme="dark"] body {
  color: var(--bd-text) !important;
  background: var(--bd-bg) !important;
}

html[data-theme="dark"]::before {
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(242, 84, 45, 0.2) 0%, transparent 56%),
    radial-gradient(60% 50% at 0% 100%, rgba(78, 132, 255, 0.18) 0%, transparent 58%),
    radial-gradient(48% 38% at 50% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 62%) !important;
}

html[data-theme="dark"] header {
  background: var(--bd-header-bg) !important;
  border-color: rgba(255, 255, 255, 0.035) !important;
  box-shadow: 0 10px 34px var(--bd-shadow-soft) !important;
}

html[data-theme="dark"] header[style*="border:1px solid transparent"] {
  background: transparent !important;
  border: 0 solid transparent !important;
  border-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] header[style*="border: 1px solid transparent"] {
  background: transparent !important;
  border: 0 solid transparent !important;
  border-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] header button[aria-label="Otevřít menu"],
html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] button[aria-label="Zavřít menu"] {
  background: var(--bd-surface) !important;
  border-color: var(--bd-line) !important;
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] {
  background: var(--bd-overlay-bg) !important;
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] > div.h-px,
html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] nav a {
  border-color: transparent !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] nav a {
  border-bottom-color: var(--bd-line-soft) !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] > div.h-px {
  background: transparent !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] nav a,
html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] nav a span,
html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] p {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] div[class*="fixed inset-0 z-[100]"] nav svg {
  color: var(--bd-text-muted) !important;
}

html[data-theme="dark"] [class*="text-black"],
html[data-theme="dark"] [style*="color:#000"],
html[data-theme="dark"] [style*="color: #000"],
html[data-theme="dark"] [style*="color:#000000"],
html[data-theme="dark"] [style*="color: #000000"],
html[data-theme="dark"] [style*="color:rgb(0,0,0"],
html[data-theme="dark"] [style*="color: rgb(0,0,0"],
html[data-theme="dark"] [style*="color:rgb(0, 0, 0"],
html[data-theme="dark"] [style*="color: rgb(0, 0, 0"],
html[data-theme="dark"] [style*="color:rgba(0,0,0"],
html[data-theme="dark"] [style*="color: rgba(0,0,0"] {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] h1 [style*="color:#000"],
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .pricing-card__price {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] h1 [style*="rgba(0,0,0,0.15)"] {
  color: rgba(244, 247, 255, 0.2) !important;
}

html[data-theme="dark"] [style*="background:#f0f4ff"],
html[data-theme="dark"] [style*="background: #f0f4ff"],
html[data-theme="dark"] [style*="background-color:#f0f4ff"],
html[data-theme="dark"] [style*="background-color: #f0f4ff"] {
  background: var(--bd-page-bg) !important;
  background-color: var(--bd-page-bg) !important;
}

html[data-theme="dark"] [style*="background:rgba(240,244,255"],
html[data-theme="dark"] [style*="background: rgba(240,244,255"],
html[data-theme="dark"] [style*="background-color:rgba(240,244,255"],
html[data-theme="dark"] [style*="background-color: rgba(240,244,255"] {
  background: var(--bd-overlay-bg) !important;
  background-color: var(--bd-overlay-bg) !important;
}

html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background:rgb(255,255,255"],
html[data-theme="dark"] [style*="background: rgb(255,255,255"],
html[data-theme="dark"] [style*="background-color:rgb(255,255,255"],
html[data-theme="dark"] [style*="background-color: rgb(255,255,255"],
html[data-theme="dark"] .pricing-card {
  background: var(--bd-panel-bg) !important;
  background-color: var(--bd-panel-bg) !important;
}

html[data-theme="dark"] .pricing-card--featured {
  background: rgba(25, 22, 28, 0.96) !important;
  border-color: rgba(242, 84, 45, 0.38) !important;
}

html[data-theme="dark"] .divider,
html[data-theme="dark"] [style*="background:rgba(0,0,0,0.07)"],
html[data-theme="dark"] [style*="background:rgba(0,0,0,0.08)"],
html[data-theme="dark"] [style*="background:rgba(0,0,0,0.1)"],
html[data-theme="dark"] [style*="border-color:rgba(0,0,0"] {
  background: var(--bd-line) !important;
  border-color: var(--bd-line) !important;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] [style*="border:1px solid rgba(0,0,0"] {
  color: var(--bd-text-soft) !important;
  border-color: var(--bd-surface-hover) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] a:hover {
  color: var(--bd-on-accent) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color: var(--bd-text-strong) !important;
  background: var(--bd-surface) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--bd-text-faint) !important;
}

html[data-theme="dark"] section,
html[data-theme="dark"] main,
html[data-theme="dark"] footer,
html[data-theme="dark"] [id="sluzby"],
html[data-theme="dark"] [id="portfolio"],
html[data-theme="dark"] [id="cenik"],
html[data-theme="dark"] [id="kontakt"] {
  color: var(--bd-text) !important;
}

html[data-theme="dark"] body > div:not([hidden]) > div[style*="background"],
html[data-theme="dark"] section[style*="background"],
html[data-theme="dark"] footer[style*="background"] {
  background: var(--bd-page-bg) !important;
  background-color: var(--bd-page-bg) !important;
}

html[data-theme="dark"] div[style*="perspective:1200px"],
html[data-theme="dark"] div[style*="perspective: 1200px"] {
  background: transparent !important;
  perspective: 1200px !important;
  perspective-origin: 50% 0% !important;
  transform-style: preserve-3d !important;
}

html[data-theme="dark"] div[style*="backface-visibility:hidden"],
html[data-theme="dark"] div[style*="backface-visibility: hidden"] {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-origin: top center !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
}

html[data-theme="dark"] div[style*="margin-top:-28px"],
html[data-theme="dark"] div[style*="margin-top: -28px"] {
  background: var(--bd-page-bg) !important;
  background-color: var(--bd-page-bg) !important;
  box-shadow: 0 -8px 48px var(--bd-shadow-soft) !important;
}

/* Mobile layout fixes */
@media (max-width: 767px) {
  div[style*="perspective:1200px"],
  div[style*="perspective: 1200px"] {
    perspective: none !important;
    transform-style: flat !important;
  }

  div[style*="backface-visibility:hidden"],
  div[style*="backface-visibility: hidden"] {
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
  }

  section.h-screen.min-h-\[640px\] {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  section.h-screen.min-h-\[640px\] > div {
    padding-top: 74px !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
  }

  section.h-screen.min-h-\[640px\] .hero-headline span {
    font-size: clamp(40px, 12.8vw, 54px) !important;
  }

  section.h-screen.min-h-\[640px\] .hero-headline + div {
    margin-top: 16px !important;
  }

  section.h-screen.min-h-\[640px\] > div > div:first-child {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 0 !important;
  }

  section.h-screen.min-h-\[640px\] > div > div:last-child {
    flex-shrink: 0 !important;
    margin-bottom: clamp(52px, 9svh, 86px) !important;
    padding-bottom: 0 !important;
  }

  section.h-screen.min-h-\[640px\] > div > div:last-child > div:first-child {
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  section.h-screen.min-h-\[640px\] .btn-launch {
    min-height: 46px !important;
    padding: 0 16px !important;
  }

  section.h-screen.min-h-\[640px\] .btn-ghost {
    display: inline-flex !important;
    min-height: 46px !important;
    padding: 0 16px !important;
  }

  section.h-screen.min-h-\[640px\] .btn-launch,
  section.h-screen.min-h-\[640px\] .btn-ghost {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  section.h-screen.min-h-\[640px\] > div > div:last-child > div:first-child {
    flex-direction: column !important;
  }

  section.h-screen.min-h-\[640px\] .btn-launch,
  section.h-screen.min-h-\[640px\] .btn-ghost {
    width: min(100%, 240px) !important;
  }
}

@media (max-width: 767px) {
  #kontakt > div:first-child {
    align-items: center !important;
    text-align: center !important;
  }

  #kontakt > div:nth-of-type(3) {
    text-align: center !important;
  }

  #kontakt > div:nth-of-type(3) > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #kontakt h3,
  #kontakt h3 + p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  #kontakt .space-y-5 {
    width: 100% !important;
    max-width: 320px !important;
  }

  #kontakt .space-y-5 > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  #kontakt .space-y-5 > div > span:first-child {
    width: auto !important;
  }
}

html[data-theme="dark"] .bg-black\/\[0\.03\],
html[data-theme="dark"] .bg-black\/\[0\.04\],
html[data-theme="dark"] .bg-black\/\[0\.05\],
html[data-theme="dark"] .bg-black\/\[0\.06\],
html[data-theme="dark"] .bg-black\/\[0\.07\],
html[data-theme="dark"] .bg-black\/5,
html[data-theme="dark"] .focus\:bg-black\/\[0\.07\]:focus {
  background-color: var(--bd-surface) !important;
}

html[data-theme="dark"] .placeholder-black\/25::placeholder {
  color: var(--bd-text-faint) !important;
}

html[data-theme="dark"] .pricing-card__name,
html[data-theme="dark"] .pricing-card__desc,
html[data-theme="dark"] .pricing-card__item-text,
html[data-theme="dark"] .ig-label,
html[data-theme="dark"] .ig-icon {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] .pricing-card__line,
html[data-theme="dark"] .divider {
  background: var(--bd-line) !important;
}

html[data-theme="dark"] .ig-btn {
  background: rgba(12, 16, 24, 0.74) !important;
  border-color: var(--bd-line) !important;
}

html[data-theme="dark"] .mobile-menu-ig {
  color: var(--bd-text-soft) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .scroll-indicator,
html[data-theme="dark"] .mouse {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme="dark"] .scroll,
html[data-theme="dark"] .scroll-dot,
html[data-theme="dark"] .bg-black\/50,
html[data-theme="dark"] button span[class*="bg-black"] {
  background: rgba(255, 255, 255, 0.66) !important;
}

html[data-theme="dark"] .not-found-page {
  background: #050712 !important;
}

html[data-theme="dark"] body :where(p, span, a, button, label, li, small, strong, em, div):not(.theme-switch):not(.theme-switch *) {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] body :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *):not(.theme-switch *) {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] .hero-headline,
html[data-theme="dark"] .hero-headline * {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] .hero-headline > div:last-child *,
html[data-theme="dark"] .hero-headline [style*="rgba(0,0,0,0.15)"] {
  color: var(--bd-text-faint) !important;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary *,
html[data-theme="dark"] .btn-launch,
html[data-theme="dark"] .btn-launch *,
html[data-theme="dark"] .pricing-card__btn,
html[data-theme="dark"] .pricing-card__btn *,
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .back-to-top * {
  color: var(--bd-on-accent) !important;
}

html[data-theme="dark"] .btn-launch span,
html[data-theme="dark"] .btn-launch svg,
html[data-theme="dark"] .btn-primary span,
html[data-theme="dark"] .btn-primary svg {
  color: var(--bd-on-accent) !important;
  opacity: 1 !important;
}

/* CTA interactions */
.btn-launch:hover,
.btn-launch:focus-visible {
  background: var(--bd-accent-hover) !important;
}

.btn-launch:hover svg,
.btn-launch:focus-visible svg {
  transform: translate(5px) rotate(90deg) !important;
}

.btn-launch:hover span,
.btn-launch:focus-visible span {
  transform: translate(7px) !important;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
}

html[data-theme="dark"] .btn-launch:hover,
html[data-theme="dark"] .btn-launch:focus-visible {
  background: var(--bd-accent-hover) !important;
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost:focus-visible {
  background: var(--bd-surface-hover) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: var(--bd-on-accent) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="dark"] #portfolio {
  background: var(--bd-page-bg) !important;
}

html[data-theme="dark"] #portfolio a[style*="background:#f5f5f5"],
html[data-theme="dark"] #portfolio a[style*="background: #f5f5f5"],
html[data-theme="dark"] #portfolio a.group {
  background: var(--bd-panel-muted) !important;
  border: 1px solid var(--bd-line-soft) !important;
  box-shadow: 0 18px 56px var(--bd-shadow-strong) !important;
}

html[data-theme="dark"] #portfolio [style*="background:#fff"],
html[data-theme="dark"] #portfolio [style*="background: #fff"],
html[data-theme="dark"] #portfolio [style*="background:#ffffff"],
html[data-theme="dark"] #portfolio [style*="background: #ffffff"],
html[data-theme="dark"] #portfolio a.group > div:not(.absolute) {
  background: var(--bd-panel-deep) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] #portfolio [style*="background:rgba(0,0,0,0.05)"],
html[data-theme="dark"] #portfolio [style*="background: rgba(0,0,0,0.05)"],
html[data-theme="dark"] #portfolio a.group > div:not(.absolute) span {
  background: var(--bd-surface) !important;
  border-color: var(--bd-line) !important;
}

html[data-theme="dark"] #portfolio p,
html[data-theme="dark"] #portfolio span,
html[data-theme="dark"] #portfolio h2 {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] #portfolio h2,
html[data-theme="dark"] #portfolio .text-black,
html[data-theme="dark"] #portfolio [class*="font-semibold"],
html[data-theme="dark"] #portfolio [class*="font-medium"] {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] #portfolio .absolute p,
html[data-theme="dark"] #portfolio .absolute svg {
  color: var(--bd-on-accent) !important;
}

html[data-theme="dark"] #portfolio img {
  background: #111722 !important;
}

html[data-theme="dark"] #kontakt button[type="button"][style*="background:rgba(0,0,0,0.03)"],
html[data-theme="dark"] #kontakt button[type="button"][style*="background: rgba(0,0,0,0.03)"],
html[data-theme="dark"] #kontakt form button[type="button"] {
  background: var(--bd-line-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] #kontakt button[type="button"][style*="background:rgba(0,0,0,0.03)"]:hover,
html[data-theme="dark"] #kontakt button[type="button"][style*="background: rgba(0,0,0,0.03)"]:hover,
html[data-theme="dark"] #kontakt button[type="button"][style*="background:rgba(0,0,0,0.03)"]:focus,
html[data-theme="dark"] #kontakt button[type="button"][style*="background: rgba(0,0,0,0.03)"]:focus,
html[data-theme="dark"] #kontakt form button[type="button"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"]:focus {
  background: var(--bd-surface-hover) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] #kontakt form button[type="button"][style*="#F2542D"],
html[data-theme="dark"] #kontakt form button[type="button"][style*="#f2542d"],
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgb(242, 84, 45)"],
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242,84,45"],
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242, 84, 45"] {
  background: rgba(242, 84, 45, 0.16) !important;
  border-color: var(--bd-accent) !important;
  box-shadow: 0 0 0 1px rgba(242, 84, 45, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: var(--bd-accent-text) !important;
}

html[data-theme="dark"] #kontakt form button[type="button"][style*="#F2542D"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"][style*="#F2542D"]:focus,
html[data-theme="dark"] #kontakt form button[type="button"][style*="#f2542d"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"][style*="#f2542d"]:focus,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgb(242, 84, 45)"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgb(242, 84, 45)"]:focus,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242,84,45"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242,84,45"]:focus,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242, 84, 45"]:hover,
html[data-theme="dark"] #kontakt form button[type="button"][style*="rgba(242, 84, 45"]:focus {
  background: rgba(242, 84, 45, 0.22) !important;
  border-color: var(--bd-accent-text) !important;
  color: var(--bd-accent-text) !important;
}

/* Theme switch */
.bedigit-theme-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bedigit-theme-slot--desktop {
  margin-left: 8px;
}

.bedigit-theme-slot--mobile {
  margin-left: auto;
  margin-right: 12px;
}

.bedigit-theme-slot--mobile-top {
  margin-left: auto;
  margin-right: 12px;
}

@media (min-width: 768px) {
  .bedigit-theme-slot--mobile-top {
    display: none;
  }
}

.theme-switch {
  --switch-width: 70px;
  --switch-height: 32px;
  --switch-padding: 4px;
  --switch-knob: 24px;
  --switch-travel: calc(var(--switch-width) - var(--switch-knob) - (var(--switch-padding) * 2));
  display: inline-flex;
  position: relative;
  width: var(--switch-width);
  height: var(--switch-height);
  flex: 0 0 auto;
  color: initial !important;
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.theme-switch__container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f9fd 0%, #e8edf4 52%, #d9dfe8 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -4px 9px rgba(82, 92, 112, 0.1),
    0 4px 10px rgba(31, 39, 58, 0.16),
    0 1px 2px rgba(31, 39, 58, 0.14);
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow:
    inset 0 2px 6px rgba(22, 30, 48, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.theme-switch__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-switch__circle-container {
  position: absolute;
  z-index: 3;
  left: var(--switch-padding);
  top: 50%;
  width: var(--switch-knob);
  height: var(--switch-knob);
  display: flex;
  border-radius: 50%;
  transform: translate(var(--switch-travel), -50%);
  transition: transform 0.34s cubic-bezier(0.34, 1.36, 0.64, 1), box-shadow 0.32s ease;
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fbff 0%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -2px 4px rgba(80, 89, 107, 0.14),
    0 1px 2px rgba(18, 27, 48, 0.22),
    0 3px 8px rgba(18, 27, 48, 0.24);
}

.theme-switch__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #aeb5c2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.24s ease, transform 0.3s ease;
}

.theme-switch__icon--sun {
  opacity: 1;
}

.theme-switch__icon--moon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(-16deg);
}

.theme-switch__checkbox:checked + .theme-switch__container {
  background: linear-gradient(145deg, #111722 0%, #1b2431 54%, #2c3645 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    inset 0 -5px 10px rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(2, 8, 20, 0.26);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  transform: translate(0, -50%);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__icon--sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(16deg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__icon--moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.theme-switch:hover .theme-switch__circle-container {
  filter: brightness(1.04);
}

.theme-switch__checkbox:focus-visible + .theme-switch__container {
  outline: 2px solid rgba(58, 126, 174, 0.45);
  outline-offset: 3px;
}

.mobile-menu-ig {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.62);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-ig__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.mobile-menu-ig__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-menu-ig:hover {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.68);
}

@media (min-width: 768px) {
  .mobile-menu-ig {
    display: none;
  }
}

@media (max-width: 767px) {
  .theme-switch {
    --switch-width: 62px;
    --switch-height: 30px;
    --switch-padding: 4px;
    --switch-knob: 22px;
  }

  .theme-switch__icon {
    width: 15px;
    height: 15px;
  }
}

.not-found-page.not-found-page--bedigit {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background: #f0f4ff;
  color: #000;
  overflow: hidden;
  padding: 112px 32px 56px;
}

.not-found-page--bedigit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 0, rgba(99, 149, 255, 0.34) 0%, transparent 58%),
    radial-gradient(50% 45% at 0 100%, rgba(59, 108, 255, 0.22) 0%, transparent 58%);
}

.not-found-page--bedigit .box-of-star,
.not-found-page--bedigit .astronaut {
  display: none;
}

.not-found-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.not-found-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 0, 0, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.not-found-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f2542d;
  box-shadow: 0 0 0 8px rgba(242, 84, 45, 0.12);
}

.not-found-title {
  max-width: 920px;
  margin: 28px 0 0;
  color: #000;
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.not-found-title span {
  display: block;
  color: rgba(0, 0, 0, 0.15);
}

.not-found-desc {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, 0.52);
  font-size: 15px;
  line-height: 1.8;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.not-found-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin-top: 72px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.not-found-meta a {
  background: rgba(255, 255, 255, 0.46);
  padding: 18px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.not-found-meta a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #000;
}

html[data-theme="dark"] .not-found-page.not-found-page--bedigit {
  background: #050712 !important;
  color: var(--bd-text-strong);
}

html[data-theme="dark"] .not-found-page--bedigit::before {
  background:
    radial-gradient(70% 50% at 100% 0, rgba(106, 151, 255, 0.18) 0%, transparent 58%),
    radial-gradient(50% 45% at 0 100%, rgba(242, 84, 45, 0.1) 0%, transparent 58%);
}

html[data-theme="dark"] .not-found-title {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] .not-found-title span {
  color: var(--bd-text-faint) !important;
}

html[data-theme="dark"] .not-found-kicker,
html[data-theme="dark"] .not-found-desc {
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] .not-found-meta {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .not-found-meta a {
  background: rgba(255, 255, 255, 0.04);
  color: var(--bd-text-soft) !important;
}

html[data-theme="dark"] .not-found-meta a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bd-text-strong) !important;
}

@media (max-width: 640px) {
  .not-found-page.not-found-page--bedigit {
    padding: 104px 24px 40px;
  }

  .not-found-title {
    font-size: clamp(48px, 18vw, 76px);
  }

  .not-found-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-actions .btn-primary,
  .not-found-actions .btn-ghost {
    justify-content: center;
  }

  .not-found-meta {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
}

.not-found-page.not-found-page--cosmonaut {
  min-height: 100vh;
  background: #f0f4ff;
  color: #000;
  padding: 104px 24px 48px;
}

.not-found-page--cosmonaut::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 0, rgba(99, 149, 255, 0.34) 0%, transparent 58%),
    radial-gradient(50% 45% at 0 100%, rgba(59, 108, 255, 0.22) 0%, transparent 58%);
}

.not-found-page--cosmonaut .box-of-star {
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.not-found-page--cosmonaut .star,
.not-found-page--cosmonaut .star::before,
.not-found-page--cosmonaut .star::after {
  background-color: rgba(0, 0, 0, 0.22);
}

.not-found-page--cosmonaut .astronaut {
  top: calc(50% - 245px);
  left: calc(50% - 125px);
  filter: drop-shadow(0 24px 48px rgba(59, 108, 255, 0.22));
}

.not-found-page--cosmonaut .not-found-text {
  z-index: 20;
  max-width: 640px;
  margin-top: 380px;
  padding: 0 16px;
}

.not-found-page--cosmonaut .not-found-code {
  top: -140px;
  color: rgba(0, 0, 0, 0.08);
  font-size: clamp(92px, 18vw, 190px);
  letter-spacing: -0.05em;
}

.not-found-page--cosmonaut .not-found-title {
  color: #000;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.not-found-page--cosmonaut .not-found-desc {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.52);
  font-size: 15px;
  line-height: 1.75;
}

.not-found-page--cosmonaut .btn-primary {
  margin-top: 30px !important;
}

html[data-theme="dark"] .not-found-page.not-found-page--cosmonaut {
  background: #050712 !important;
}

html[data-theme="dark"] .not-found-page--cosmonaut::before {
  background:
    radial-gradient(70% 50% at 100% 0, rgba(106, 151, 255, 0.18) 0%, transparent 58%),
    radial-gradient(50% 45% at 0 100%, rgba(242, 84, 45, 0.1) 0%, transparent 58%);
}

html[data-theme="dark"] .not-found-page--cosmonaut .box-of-star {
  opacity: 0.72;
  mix-blend-mode: normal;
}

html[data-theme="dark"] .not-found-page--cosmonaut .star,
html[data-theme="dark"] .not-found-page--cosmonaut .star::before,
html[data-theme="dark"] .not-found-page--cosmonaut .star::after {
  background-color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] .not-found-page--cosmonaut .not-found-code {
  color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .not-found-page--cosmonaut .not-found-title {
  color: var(--bd-text-strong) !important;
}

html[data-theme="dark"] .not-found-page--cosmonaut .not-found-desc {
  color: var(--bd-text-soft) !important;
}

@media (max-width: 640px) {
  .not-found-page.not-found-page--cosmonaut {
    justify-content: flex-start;
    padding-top: 96px;
  }

  .not-found-page--cosmonaut .astronaut {
    width: 190px;
    height: 228px;
    top: 130px;
    left: calc(50% - 95px);
  }

  .not-found-page--cosmonaut .not-found-text {
    margin-top: 330px;
  }

  .not-found-page--cosmonaut .not-found-code {
    top: -92px;
  }
}

html[data-theme="light"] .text-black\/30 {
  color: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .text-black\/35 {
  color: rgba(0, 0, 0, 0.56) !important;
}

html[data-theme="light"] .text-black\/40,
html[data-theme="light"] [style*="color:rgba(0,0,0,0.4)"],
html[data-theme="light"] [style*="color: rgba(0,0,0,0.4)"] {
  color: rgba(0, 0, 0, 0.62) !important;
}

html[data-theme="light"] .text-black\/45 {
  color: rgba(0, 0, 0, 0.66) !important;
}

html[data-theme="light"] .text-white\/60 {
  color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="light"] .text-white\/70 {
  color: rgba(255, 255, 255, 0.92) !important;
}
