:root {
  color-scheme: light;
}
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
}
.header nav {
  justify-content: flex-end;
}
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 82px;
  height: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  top: 5px;
  left: 5px;
  transition: transform 0.2s ease;
}
.theme-toggle svg {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0 5px;
  pointer-events: none;
}
.theme-toggle .theme-sun {
  color: var(--paper);
}
.theme-toggle:hover {
  border-color: var(--muted);
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #24201d;
  --ink: #f5f2ed;
  --muted: #c8bfb5;
  --line: #51483e;
}
[data-theme="dark"] .theme-toggle::before {
  transform: translateX(38px);
  background: #ffd67a;
}
[data-theme="dark"] .theme-toggle .theme-sun {
  color: var(--muted);
}
[data-theme="dark"] .theme-toggle .theme-moon {
  color: #24201d;
}
[data-theme="dark"] h1 em,
[data-theme="dark"] h2 span {
  color: #e3c99e;
}
[data-theme="dark"] .button {
  color: #24201d;
  background: #f5f2ed;
  border-color: #f5f2ed;
}
[data-theme="dark"] .button:hover {
  color: #24201d;
  background: #ffd67a;
  border-color: #ffd67a;
}
[data-theme="dark"] .number,
[data-theme="dark"] .steps span {
  color: #d5bd98;
}
[data-theme="dark"] .image-caption {
  background: #24201de8;
  color: #f5f2ed;
}
[data-theme="dark"] .hero-image {
  background: #302b26;
}
[data-theme="dark"] .quiet-link {
  border-color: #9a8f7f;
}
[data-theme="dark"] .service {
  background: #2d2823;
}
[data-theme="dark"] .service.featured {
  background: #3a3025;
  border-color: #977a50;
}
[data-theme="dark"] .featured .service-top {
  color: #f0cf9c;
}
[data-theme="dark"] .all-in,
[data-theme="dark"] .contact {
  background: #171411;
  color: #f5f2ed;
}
[data-theme="dark"] .button.light {
  background: #f5f2ed;
  border-color: #f5f2ed;
  color: #24201d;
}
[data-theme="dark"] .button.light:hover {
  background: #ffd67a;
  border-color: #ffd67a;
}
[data-theme="dark"] .works {
  background: #2c2722;
}
[data-theme="dark"] .case-image img,
[data-theme="dark"] .map-image {
  background: #36302a;
}
[data-theme="dark"] .map-image {
  color: var(--ink);
}
[data-theme="dark"] .reviews {
  background: #332b23;
}
[data-theme="dark"] figure {
  border-color: #625344;
}
[data-theme="dark"] .skip {
  background: #24201d;
  color: #f5f2ed;
}
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] summary:focus-visible {
  outline-color: #ffd67a;
}
.close-dialog,
.menu-toggle {
  color: var(--ink);
}
@media (min-width: 1101px) and (max-width: 1250px) {
  .header {
    gap: 18px;
    padding-left: 4%;
    padding-right: 4%;
  }
  .header nav {
    gap: 18px;
  }
  .header .brand {
    font-size: 20px;
  }
}
@media (max-width: 1100px) {
  .header {
    grid-template-columns: 1fr auto auto;
    gap: 20px;
  }
  .header .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: block;
    border: 0;
    border-bottom: 1px solid;
    background: none;
    padding: 10px 0;
    font-size: 14px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 25px 6%;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .header nav.open {
    display: flex;
  }
}
@media (max-width: 420px) {
  .header {
    gap: 12px;
    padding-left: 5%;
    padding-right: 5%;
  }
  .header .brand {
    font-size: 16px;
    letter-spacing: 0.07em;
  }
  .header .brand span {
    font-size: 8px;
    letter-spacing: 0.13em;
  }
  .theme-toggle {
    width: 74px;
  }
  .theme-toggle svg {
    width: 19px;
    height: 19px;
    margin: 0 5px;
  }
  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(30px);
  }
}
