:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

@font-face {
  font-family: Atlas Golos;
  src: url('golos.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

.atlas-themed .atlas-header-a[data-surface],
body.atlas-themed .atlas-header-a.catalogue-header[data-surface] {
  background: #080808 !important;
  color: #f5f2ed;
  --atlas-ink: #f5f2ed;
  --atlas-sand: #c9ad7c;
}
body.atlas-themed .catalogue-header[data-surface] .logo { text-shadow: none; }
body.atlas-themed .catalogue-header[data-surface] .logo small { color: #f5f2ed; }
body.atlas-themed .catalogue-header[data-surface] [data-header-count] { color: #c9ad7c; }
body.atlas-themed .atlas-header-a .header-contact {
  background: #84251c;
  color: #f5f2ed;
  border: 0;
  padding-inline: 18px;
  font-family: Atlas Golos, Arial, sans-serif;
  font-weight: 500;
}
body.atlas-themed .atlas-header-a .header-contact:is(:hover, :focus-visible) {
  background: #9b3429;
  color: #f5f2ed;
}
.atlas-themed .atlas-header-a .theme-toggle { flex: none; border: 0; padding: 0; min-height: 44px; background: transparent; }
.atlas-themed .atlas-header-a .theme-toggle:hover { background: transparent; }
.atlas-header-a .theme-toggle svg { width: 22px; height: 22px; fill: #84251c; stroke: none; }
.atlas-header-a .theme-toggle[aria-pressed="true"] svg { fill: #080808; stroke: #f5f2ed; stroke-width: 1.3; }
.atlas-header-a .theme-toggle:focus-visible { outline-color: #f5f2ed; }
@media (max-width: 760px) {
  .atlas-themed .atlas-header-a .theme-toggle { min-height: 36px; }
  body.atlas-themed .atlas-header-a .header-contact { display: none; }
  .atlas-themed .atlas-header-a .logo strong { font-size: 20px; }
  .atlas-themed .atlas-header-a .logo small { font-size: 9px !important; }
}

.atlas-themed .ba-footer {
  background: #080808;
  color: #f5f2ed;
  --atlas-ink: #f5f2ed;
  --atlas-sand: #c9ad7c;
  --footer-ink: #f5f2ed;
  --footer-muted: #c4c0b8;
  --footer-gold: #c9ad7c;
  --footer-line: #38352f;
}
.atlas-themed[data-first="desk"] #intro-note {
  min-block-size: 2lh;
  align-content: center;
}
.atlas-themed.comparison[data-first="desk"] #share-button[hidden] {
  display: flex !important;
  visibility: hidden;
}
.atlas-themed.comparison #saved { padding-block-start: clamp(20px, 2vw, 34px); }

[data-theme="light"] .atlas-themed {
  --canvas: #f5f2ed;
  --surface: #fffdf8;
  --ink: #25211c;
  --soft: #494136;
  --quiet: #60584d;
  --muted: #60584d;
  --divider: #d5cabb;
  --line: #d5cabb;
  --atlas-ink: #25211c;
  --atlas-sand: #6b512e;
  --atlas-line: #93764b;
  background: var(--canvas);
  color: var(--ink);
}
[data-theme="light"] .atlas-themed :is(.intro-banner,.catalogue-hero,.support-reference,.photo-dialog,.catalogue-photo,.catalogue-thumbs) {
  --canvas: #080808;
  --surface: #14110e;
  --ink: #f5f2ed;
  --soft: #e0d9cf;
  --quiet: #b9ada0;
  --atlas-ink: #f5f2ed;
  --atlas-sand: #c9ad7c;
  --atlas-line: #75684e;
  color: #f5f2ed;
}
[data-theme="light"] .atlas-themed :is(.catalogue-card,.comparison-panel,.comparison-option,.comparison-insight,.comparison-insight-list) {
  background: var(--surface);
  color: var(--ink);
}
[data-theme="light"] .atlas-themed :is(.catalogue-card,.catalogue-toolbar,.catalogue-card dl,.comparison-option,.comparison-table th,.comparison-table td) {
  border-color: var(--divider);
}
[data-theme="light"] .atlas-themed :is(.catalogue-address,.catalogue-date,.catalogue-card dt,.catalogue-price-label,.catalogue-preview-note,.catalogue-hint) {
  color: var(--muted);
}
[data-theme="light"] .atlas-themed :is(.catalogue-price,.catalogue-card dd,.catalogue-preview dd) { color: var(--ink); }
[data-theme="light"] .atlas-themed:not(.all-projects-page) :is(.catalogue-filters,.catalogue-dialog,.catalogue-filter-dialog,.catalogue-search-suggestions) {
  color: var(--ink);
  background: var(--surface);
}
[data-theme="light"] .atlas-themed:not(.all-projects-page) :is(.catalogue-filters,.catalogue-dialog,.catalogue-filter-dialog) :is(label,legend,input,select,button) {
  color: var(--ink);
}
[data-theme="light"] .atlas-themed:not(.all-projects-page) :is(.catalogue-filters,.catalogue-dialog,.catalogue-filter-dialog) :is(input,select) {
  color-scheme: light;
  background: var(--surface);
  border-color: var(--atlas-line);
}
[data-theme="light"] .atlas-themed :is(.catalogue-card,.plan-card) [data-atlas-action="primary"] {
  background: #e5d3b2;
  color: #25211c;
  border-color: #93764b;
}
[data-theme="light"] .atlas-themed :is(.catalogue-card,.plan-card) [data-atlas-action="primary"]:hover { background: #d9c49d; }
[data-theme="light"] .atlas-themed :is(.catalogue-card-actions button,.comparison-option button) { color: var(--ink); }
[data-theme="light"] .atlas-themed .catalogue-card-actions button[aria-pressed="true"] { background: #ebe3d6; color: #6b512e; }
[data-theme="light"] .atlas-themed :is(.comparison-column-price,.catalogue-photo-title) { color: #f5f2ed; }

:root[data-theme="dark"] .all-projects[data-daylight] {
  --catalogue-day-surface: #080808;
}
:root[data-theme="dark"] [data-daylight] .catalogue-moscow::after {
  background: linear-gradient(to top, var(--catalogue-day-surface), transparent 28%),
              linear-gradient(to bottom, #08080850, transparent 55%);
}
:root[data-theme="dark"] .all-projects[data-daylight] .catalogue-moscow :is(h1,.catalogue-moscow-note) {
  color: #f5f2ed;
  text-shadow: 0 1px 16px #080808;
}
:root[data-theme="dark"] [data-daylight] .catalogue-toolbar {
  margin-top: 0;
  border-color: #38352f;
  color: var(--filter-ink);
}
:root[data-theme="dark"] [data-daylight] .catalogue-filters :is(#catalogue-chips button,.catalogue-quick input:not([type="range"]),.catalogue-quick select,.catalogue-sort select) {
  border-color: var(--filter-line);
}
:root[data-theme="dark"] [data-daylight] .catalogue-layout button[aria-pressed="true"] {
  color: var(--atlas-sand);
}
