.site-header .website-theme {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.site-header .website-theme[hidden] { display: none; }
.website-theme svg { width: 18px; height: 18px; }
.website-theme details { position: relative; }
.website-theme summary {
  display: flex; align-items: center; gap: 8px; min-height: 42px;
  padding-inline: 4px; font-size: 13px; cursor: pointer; list-style: none;
}
.website-theme summary::-webkit-details-marker { display: none; }
.website-theme summary::after {
  content: ""; width: 6px; height: 6px; margin: -3px 3px 0 auto;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.website-theme summary:focus-visible { outline-offset: 0; border-radius: 5px; }
.website-theme-options {
  position: absolute; top: calc(100% + 8px); inset-inline-end: -8px; z-index: 2;
  width: max-content; min-width: 148px; padding: 4px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--theme-surface, white); box-shadow: 0 10px 24px rgb(0 0 0 / .18);
}
.website-theme-options button {
  display: block; width: 100%; min-height: 40px; padding: 6px 10px;
  text-align: start; font-size: 13px; color: var(--ink); border: 0; border-radius: 5px; background: transparent;
}
.website-theme-options button[aria-pressed="true"], .website-theme-options button:hover {
  color: var(--blue); background: var(--pale);
}
.website-theme .website-theme-sun, [data-theme="dark"] .website-theme .website-theme-moon { display: none; }
[data-theme="dark"] .website-theme .website-theme-sun { display: block; }
@media (max-width: 1050px) {
  .site-header .website-theme { margin-inline-start: auto; }
  .site-header .navigation-toggle { margin-inline-start: 4px; }
}
@media (max-width: 420px) {
  .site-header .brand img { width: clamp(110px, 36vw, 150px); object-fit: contain; object-position: left; }
  .site-header .website-theme { padding-inline: 6px; gap: 4px; }
  .site-header .website-theme svg { display: none; }
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --theme-page: #0b1624;
    --theme-surface: #112238;
    --theme-raised: #172e49;
    --ink: #edf5ff;
    --muted: #b5c6db;
    --blue: #8fc3ff;
    --cyan: #71d7ff;
    --line: #304963;
    --pale: var(--theme-raised);
    background: var(--theme-page);
  }

  [data-theme="dark"] body { background: var(--theme-page); color: var(--ink); }
  [data-theme="dark"] .site-header { background: #12375d; border-color: var(--line); }
  [data-theme="dark"] .site-header :is(nav a,.services-menu summary,.navigation-toggle) { color: var(--ink); border-color: var(--line); }
  [data-theme="dark"] .site-header nav > a[aria-current="page"] {
    background: transparent; color: var(--blue); border-block-end-color: transparent;
  }
  [data-theme="dark"] .site-header nav > a[aria-current="page"]::after { background: currentColor; opacity: .75; }
  @media (max-width: 1050px) {
    [data-theme="dark"] .site-header nav > a[aria-current="page"] { background: var(--theme-raised); }
  }
  [data-theme="dark"] :is(.services-dropdown,.product-card,.post-card,.service-card,.post-body,.product-no-photo,.empty-results,
    .catalog-empty,.article-cta,.location-card,.location-info,.location-map,.website-theme,.preview-banner,.maintenance-banner) {
    background: var(--theme-surface);
    color: var(--ink);
    border-color: var(--line);
  }

  [data-theme="dark"] :is(.post-body-wrap,.home-products,.home-posts,.home-services,.service-detail,.service-visual,.product-image) {
    background: var(--theme-page);
    color: var(--ink);
  }

  [data-theme="dark"] :is(.post-body,.article-content,.native-page,.laik-page-block) :is(h1,h2,h3,h4) { color: var(--ink); }
  [data-theme="dark"] :is(.post-body,.article-content,.native-page,.laik-page-block) :is(p,li,.elementor-widget-text-editor) { color: var(--muted); }
  [data-theme="dark"] :is(.post-body a,.back-link,.price,.eyebrow,.article-content a) { color: var(--blue); }
  [data-theme="dark"] :is(.search-form,.website-theme) :is(input,select) { color: var(--ink); border-color: var(--line); }
  [data-theme="dark"] .search-form :is(input,select) { background: var(--theme-surface); }
  [data-theme="dark"] .button:not(.outline) { color: white; background: #1b5da7; border-color: #3778c2; }
  [data-theme="dark"] .button.outline { color: var(--blue); background: var(--theme-surface); border-color: var(--line); }
  [data-theme="dark"] .button:hover { border-color: var(--cyan); }

  [data-theme="dark"] :is(.location-block,.location-heading,.blog-random-wrap,.original-blog-grid article,.blog-random-card,
    .service-section,.product-gallery,.web-faq-item,.faq-card,.tc-card,.pp-card) {
    background-color: var(--theme-surface);
    color: var(--ink);
    border-color: var(--line);
  }
  [data-theme="dark"] :is(.location-heading,.blog-random-header,.blog-random-content,.global-footer) :is(h2,h3) { color: var(--ink); }
  [data-theme="dark"] :is(.blog-random-tag,.blog-random-cat,.navigation-service-icon) { color: var(--blue); background: var(--theme-raised); }
  [data-theme="dark"] :is(.blog-hero-global,.blog-hero-wrap,.blog-hero),
  [data-theme="dark"] .native-page :is(section,div):has(> .blog-hero) {
    background: #12375d !important;
  }
  [data-theme="dark"] :is(.blog-hero-global,.blog-hero-wrap)::before,
  [data-theme="dark"] :is(.blog-hero-global,.blog-hero-wrap)::after { background-image: none; }
  [data-theme="dark"] .product-gallery { background: transparent; }
  [data-theme="dark"] .product-gallery img { background: var(--theme-raised); mix-blend-mode: normal; }
  [data-theme="dark"] .site-header .brand img { filter: drop-shadow(0 0 6px rgb(155 209 255 / .24)); }
  [data-theme="dark"] [data-night-paper] { background-color: var(--theme-surface) !important; background-image: none !important; }
  [data-theme="dark"] [data-night-ink] { color: var(--ink) !important; }

  [data-theme="dark"] :is(.native-page,.laik-page-block) :is(.elementor-section,.elementor-element.e-con,.elementor-column-wrap,.elementor-widget-wrap) {
    --background-color: var(--theme-page);
  }
  [data-theme="dark"] :is(.native-page,.laik-page-block) :is([style*="background-color:#fff" i],[style*="background-color: #fff" i],
    [style*="background-color:white" i],[style*="background-color: white" i],.has-white-background-color) {
    background-color: var(--theme-surface) !important;
  }
}
