.theme-toggle {
  align-items: center;
  appearance: none;
  background: #e9e5e1;
  border: 1px solid #d4cec8;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: space-between;
  margin-left: 2px;
  padding: 3px 5px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  width: 62px;
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(184, 50, 86, 0.25);
  outline-offset: 2px;
}

.theme-toggle-icon {
  align-items: center;
  color: #6c6560;
  display: flex;
  font-size: 15px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 22px;
  z-index: 2;
}

.theme-toggle-sun {
  color: #fff;
}

.theme-toggle-knob {
  background: #b83256;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(32, 33, 36, 0.22);
  height: 26px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: background var(--transition), transform var(--transition);
  width: 26px;
  z-index: 1;
}

.review-consent span,
.gallery-comment-consent span {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] {
  --accent: #e45f84;
  --accent-dark: #ff9fba;
  --ink: #f7f3f4;
  --muted: #c7c0c3;
  --line: #3d383b;
  --bg: #111113;
  --surface: #1b1a1d;
  --surface-soft: #272428;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .site-header {
  background: rgba(17, 17, 19, 0.94);
}

html[data-theme="dark"] .brand-logo-link {
  background: #fff;
  border-radius: 5px;
}

html[data-theme="dark"] .site-header nav a {
  color: #cec7ca;
}

html[data-theme="dark"] .site-header nav a:hover {
  background: #29262a;
  color: #fff;
}

html[data-theme="dark"] .site-header nav a.is-current {
  background: #3a222b;
  color: #ffb3c8;
}

html[data-theme="dark"] .site-header nav a.nav-cta {
  background: #f5f1f2;
  color: #191719;
}

html[data-theme="dark"] .site-header nav a.nav-cta:hover {
  background: #ff9fba;
  color: #191719;
}

html[data-theme="dark"] .theme-toggle {
  background: #29262a;
  border-color: #4b4549;
}

html[data-theme="dark"] .theme-toggle-knob {
  background: #f5f1f2;
  transform: translateX(28px);
}

html[data-theme="dark"] .theme-toggle-sun {
  color: #a49da0;
}

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

html[data-theme="dark"] .home-hero::before {
  background: linear-gradient(130deg, rgba(228, 95, 132, 0.14), rgba(17, 17, 19, 0) 48%);
}

html[data-theme="dark"] .hero-highlights {
  border-color: var(--line);
}

html[data-theme="dark"] .services-overview,
html[data-theme="dark"] .events-overview,
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .video-topics {
  background: #171619;
}

html[data-theme="dark"] .service-feature,
html[data-theme="dark"] .calendar-month,
html[data-theme="dark"] .calendar-empty,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .benefit-grid article,
html[data-theme="dark"] .comparison-grid article,
html[data-theme="dark"] .faq-grid article,
html[data-theme="dark"] .contact-step-grid article,
html[data-theme="dark"] .featured-video-section {
  background: var(--surface);
}

html[data-theme="dark"] .calendar-day {
  background: #262328;
}

html[data-theme="dark"] .calendar-day-empty {
  background: transparent;
}

html[data-theme="dark"] .calendar-day-event {
  background: #f1edf0;
  border-color: #f1edf0;
}

html[data-theme="dark"] .calendar-day-event .calendar-day-number,
html[data-theme="dark"] .calendar-day-event small {
  color: #1c191b;
}

html[data-theme="dark"] .calendar-status-low {
  background: #513e14;
  border-color: #b98c2c;
}

html[data-theme="dark"] .calendar-status-low .calendar-day-number,
html[data-theme="dark"] .calendar-status-low small {
  color: #ffe2a0;
}

html[data-theme="dark"] .calendar-status-full {
  background: #302d2f;
  border-color: #5a5458;
}

html[data-theme="dark"] .calendar-status-full .calendar-day-number,
html[data-theme="dark"] .calendar-status-full small {
  color: #c8c1c4;
}

html[data-theme="dark"] .event-spaces-low {
  background: #513e14;
  border-color: #b98c2c;
  color: #ffe2a0;
}

html[data-theme="dark"] .event-spaces-full {
  background: #302d2f;
  border-color: #5a5458;
  color: #c8c1c4;
}

html[data-theme="dark"] .gallery-comment-form input,
html[data-theme="dark"] .gallery-comment-form textarea,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .footer-review-form input,
html[data-theme="dark"] .footer-review-form select,
html[data-theme="dark"] .footer-review-form textarea {
  background: #242126;
  border-color: #50494e;
  color: var(--ink);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #938b90;
}

html[data-theme="dark"] .gallery-lightbox-panel {
  background: #171619;
}

html[data-theme="dark"] .history-image-button,
html[data-theme="dark"] .hero-main-photo,
html[data-theme="dark"] .brand-mark {
  background: #f7f4f5;
  border-color: #f7f4f5;
}

html[data-theme="dark"] .btn.secondary.dark {
  border-color: #655d62;
  color: var(--ink);
}

html[data-theme="dark"] .btn.secondary.dark:hover {
  background: #302c30;
  border-color: #746a70;
}

html[data-theme="dark"] .flash.success {
  background: #173426;
  color: #a9e4c1;
}

html[data-theme="dark"] .flash.error {
  background: #442126;
  color: #ffc0ca;
}

html[data-theme="dark"] .service-detail-5 .hero-small {
  background: #3b2930;
}

html[data-theme="dark"] .back-to-top {
  background: #f3eff1;
  border-color: #f3eff1;
  color: #191719;
}

@media (max-width: 780px) {
  .site-header .container {
    padding-right: 52px;
  }

  .theme-toggle {
    margin: 0;
    position: absolute;
    right: 0;
    top: 14px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding-right: 48px;
  }

  .theme-toggle {
    right: 0;
    top: 12px;
    transform: scale(0.94);
    transform-origin: right top;
  }
}
