.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--green2);
  border-color: var(--green2);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(78, 136, 181, .45);
  outline-offset: 3px;
}

.theme-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 1rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f5f7;
  --muted: #c3cbd1;
  --green: #263640;
  --green2: #8bc9f3;
  --mint: #293842;
  --cream: #20272d;
  --coral: #d39a65;
  --white: #171c21;
  --line: #46515a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] body { color: var(--ink); background: #171c21; }
html[data-theme="dark"] .header { background: rgba(23, 28, 33, .95); border-color: #3b454d; }
html[data-theme="dark"] .logo > img { background: #fff; }
html[data-theme="dark"] .nav-button { color: #d8efff !important; border-color: #8bc9f3; }
html[data-theme="dark"] .menu span { background: var(--ink); }
html[data-theme="dark"] .skip { color: #171c21; background: #fff; }

html[data-theme="dark"] .intro,
html[data-theme="dark"] .about,
html[data-theme="dark"] .news { background: #171c21; }

html[data-theme="dark"] .scenes,
html[data-theme="dark"] .process { background: #20272d; }

html[data-theme="dark"] .mentoring { background: #1c252c; border-color: var(--line); }
html[data-theme="dark"] .offer-card { background: #1d242a; border-color: var(--line); }
html[data-theme="dark"] .offer-card.featured { background: #263640; }

html[data-theme="dark"] .scene-tabs span,
html[data-theme="dark"] .mentoring-values span {
  color: var(--ink);
  background: #252e35;
  border-color: var(--line);
}

html[data-theme="dark"] .portrait-wrap { background: #293842; }
html[data-theme="dark"] .news-card { color: var(--ink); background: #222a30; border-color: var(--line); }
html[data-theme="dark"] .news-featured { color: #fff; background: #263640; border-color: #4e88b5; }
html[data-theme="dark"] .contact-form { color: var(--ink); background: #20272d; }

html[data-theme="dark"] .contact-form input:not([type="checkbox"]),
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
  color: #f2f5f7;
  background: #171c21;
  border-color: #59656e;
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder { color: #aeb8c0; }

html[data-theme="dark"] footer { background: #11161a; }
html[data-theme="dark"] .legal { background: #171c21; }

html[data-theme="dark"] .legal-header,
html[data-theme="dark"] .legal-main section {
  background: #20272d;
  border-color: var(--line);
}

html[data-theme="dark"] .legal-main p { color: var(--muted); }
html[data-theme="dark"] .legal-note { color: #f4e9df; background: #3b2d21; }

@media (max-width: 900px) {
  html[data-theme="dark"] .header nav { background: #171c21; border-color: var(--line); }
  .theme-toggle { min-width: 120px; justify-content: center; }
}
