.theme-graphite {
  --bg: #15181b;
  --surface: #21262a;
  --surface-raised: #2f363c;
  --ink: #f4f4ef;
  --muted: #bdc5c8;
  --line: #465056;
  --accent: #ff9a72;
  --accent-ink: #241811;
  --graphite-band: #303940;
  --graphite-band-card: #22292e;
  --graphite-request: #3a434a;
  --graphite-paper: #dde2e4;
  --graphite-paper-surface: #edf0f1;
  --graphite-paper-raised: #f8f9f9;
  --graphite-paper-ink: #20292e;
  --graphite-paper-muted: #434f56;
  --graphite-paper-line: #a4afb4;
  --graphite-paper-accent: #893b24;
}

.theme-graphite[data-palette="warm"] {
  --bg: #1c1b19;
  --surface: #2b2925;
  --surface-raised: #39352e;
  --ink: #fbf5e9;
  --muted: #cec3b1;
  --line: #544d41;
  --accent: #edbe84;
  --accent-ink: #2a1d10;
  --graphite-band: #44392e;
  --graphite-band-card: #302a24;
  --graphite-request: #504234;
  --graphite-paper: #e9dac1;
  --graphite-paper-surface: #f2e7d4;
  --graphite-paper-raised: #fff7e9;
  --graphite-paper-ink: #322c23;
  --graphite-paper-muted: #594d3d;
  --graphite-paper-line: #b7a68b;
  --graphite-paper-accent: #77451c;
}

.theme-graphite[data-palette="cool"] {
  --bg: #131b1c;
  --surface: #1e2b2c;
  --surface-raised: #2b393b;
  --ink: #eff8f5;
  --muted: #b3c8c7;
  --line: #405757;
  --accent: #90d8c8;
  --accent-ink: #102c28;
  --graphite-band: #214446;
  --graphite-band-card: #172f32;
  --graphite-request: #235154;
  --graphite-paper: #d3e2e2;
  --graphite-paper-surface: #e7efef;
  --graphite-paper-raised: #f3f8f7;
  --graphite-paper-ink: #1c3031;
  --graphite-paper-muted: #405658;
  --graphite-paper-line: #99afb0;
  --graphite-paper-accent: #225e56;
}

.theme-graphite .hero {
  background: linear-gradient(115deg, var(--bg) 26%, var(--surface) 100%);
}

.theme-graphite .hero-heading-city {
  margin-top: .2em;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  color: var(--accent);
  white-space: nowrap;
}
@media (min-width: 761px) {
  .theme-graphite .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    padding-top: clamp(24px, 2.75vw, 42px);
  }
  .theme-graphite :is(.hero-copy, .hero-media) { grid-area: 1 / 1; }
  .theme-graphite .hero-copy {
    --hero-inset: clamp(24px, 4.2vw, 64px);
    width: min(100%, calc(clamp(20rem, 41vw, 38rem) + 2 * var(--hero-inset)));
    padding: clamp(30px, 4.6vw, 64px) var(--hero-inset);
    z-index: 1;
  }
  .theme-graphite .hero-media { min-height: clamp(365px, 36vw, 530px); }
  .theme-graphite .hero-media img { object-position: center 52%; }
  .theme-graphite .hero-media::after {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 86%, transparent) 26%, color-mix(in srgb, var(--bg) 65%, transparent) 47%, transparent 85%),
      linear-gradient(0deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 34%);
  }
  .theme-graphite .hero .secondary { background: color-mix(in srgb, var(--bg) 60%, transparent); }
}

.theme-graphite #services { background: var(--bg); }

.theme-graphite :is(#equipment, #contacts) {
  --bg: var(--graphite-band-card);
  --surface: var(--graphite-band-card);
  color: var(--ink);
  background: var(--graphite-band);
}
.theme-graphite :is(#equipment, #contacts) .section-head .secondary,
.theme-graphite :is(#faq, #request) .secondary {
  border-color: color-mix(in srgb, var(--muted) 55%, transparent);
}
.theme-graphite :is(#equipment, #contacts, #faq, #request) .secondary:hover {
  border-color: var(--accent);
}

.theme-graphite #prices {
  color-scheme: light;
  --bg: var(--graphite-paper);
  --surface: var(--graphite-paper-surface);
  --surface-raised: var(--graphite-paper-raised);
  --ink: var(--graphite-paper-ink);
  --muted: var(--graphite-paper-muted);
  --line: var(--graphite-paper-line);
  --accent: var(--graphite-paper-accent);
  --accent-ink: #fff;
  color: var(--ink);
  background: var(--bg);
}
.theme-graphite #prices thead { background-color: var(--surface); }
.theme-graphite #prices tbody tr:nth-child(even) { background-color: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.theme-graphite #prices :is(th, td) { padding-inline: clamp(8px, 1.2vw, 18px); }
.theme-graphite #prices tbody tr:focus-within { background-color: var(--surface-raised); }
.theme-graphite #prices .primary:hover { background-color: color-mix(in srgb, var(--accent) 83%, black); }

.theme-graphite #faq { color: var(--ink); background: var(--surface); }
.theme-graphite #request { color: var(--ink); background: var(--graphite-request); }

.theme-graphite .equipment-grid { gap: clamp(14px, 2vw, 26px); }
.theme-graphite .equipment-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.theme-graphite .equipment-image {
  min-height: 0;
  aspect-ratio: 2.05;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.theme-graphite .equipment-photo { overflow: hidden; }
.theme-graphite .equipment-image img { height: 100%; aspect-ratio: auto; object-fit: contain; }
.theme-graphite .equipment-image-wide img { object-fit: cover; object-position: center 54%; }
.theme-graphite .equipment-image-product { isolation: isolate; background: #f0f0ef; }
.theme-graphite .equipment-image-product .equipment-photo { padding: 3px; }
.theme-graphite .equipment-image-product img { mix-blend-mode: multiply; }
.theme-graphite .equipment-photo:focus-visible { outline-offset: -4px; }
.theme-graphite .equipment-copy :is(h2, h3) { font-family: var(--head); font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 600; }
.theme-graphite .equipment-specs { margin-bottom: 0; }
.theme-graphite .equipment-specs li { color: var(--muted); font-weight: 600; }
.theme-graphite .equipment-specs .equipment-summary { color: var(--accent); font-weight: 800; }

@media (max-width: 760px) {
  .theme-graphite .equipment-image { aspect-ratio: 1.95; }
  .theme-graphite .equipment-copy { padding: 15px 16px 13px; }
  .theme-graphite .equipment-specs { margin-top: 9px; }
  .theme-graphite .equipment-specs li { line-height: 1.4; }
  .theme-graphite .equipment-card:has(.equipment-toggle[aria-expanded="false"]:not([hidden])) .equipment-specs > li:not(.equipment-summary) { display: none; }
  .theme-graphite .equipment-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 750;
    font-size: .875rem;
  }
  .theme-graphite .equipment-toggle::before { content: "+" / ""; color: var(--accent); font-size: 1.15em; }
  .theme-graphite .equipment-toggle[aria-expanded="true"]::before { content: "−" / ""; }
}
