/* Shared palette for the light theme. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --card: #f8f7f6;
  --line: #e4dfdc;
  --line-2: #c9c2bf;
  --text: #181615;
  --muted: #56514f;
  --faint: #696361;
  --red: #bb1c26;
  --red-ink: #bb1c26;
  --btn-bg: #181615;
  --btn-ink: #ffffff;
  --grid: rgba(31, 22, 22, 0.07);
  --wire: 65, 54, 54;
  --veil: rgba(27, 21, 20, .38);
  --logo-filter: brightness(.53);
  --glow-o: .08;
}

:root[data-theme="light"] .hero {
  background: radial-gradient(ellipse at 84% 37%, rgba(194, 50, 58, .06), transparent 52%);
}
:root[data-theme="light"] .nav .nav__sub a:hover,
:root[data-theme="light"] .web-formats > a:hover { background: var(--card); }
:root[data-theme="light"] .hero-mark__fallback span:not(:nth-child(3)) {
  background: linear-gradient(132deg, #929296, #d6d5d5 34%, #65666d 60%, #b5b4b8);
}

.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-toggle:hover { color: var(--text); background: var(--card); }
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon, :root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

@media (min-width: 981px) {
  .header__row:has(.theme-toggle) { gap: 20px; }
  .header__row:has(.theme-toggle) .nav {
    gap: clamp(14px, 1.8vw, 25px);
    margin-left: 8px;
  }
}
@media (min-width: 981px) and (max-width: 1450px) {
  .header__phone { display: none; }
}
@media (min-width: 981px) and (max-width: 1150px) {
  .header__tools > .messengers { display: none; }
  .header__cta { margin-left: 0; padding-inline: 18px; }
}
@media (min-width: 981px) and (max-width: 1250px) {
  .header__row:has(.nav a[href="/stat-partnerom/"]) { gap: 12px; }
  .header__row:has(.nav a[href="/stat-partnerom/"]) .nav { gap: clamp(9px, 1.2vw, 15px); margin-left: 0; }
  .header__row:has(.nav a[href="/stat-partnerom/"]) .header__tools > .messengers { display: none; }
}
@media print { .theme-toggle { display: none; } }
