/* FILE: diagnost/srv_diagnost/static/css/site.css
 * DATE: 2026-07-05
 * PURPOSE: Realistic diagnostic site styling and stable layout.
 */

:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #5b6575;
  --line: #d7dde7;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --blue: #204a7a;
  --green: #396f4c;
  --gold: #a17a20;
  --red: #9a3848;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

a {
  color: var(--blue);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
  gap: 28px;
  align-items: center;
  padding: 34px 0 22px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: 42px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}

.hero-media,
.media-strip img,
.media-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.actions,
.facts,
.panel,
.footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card,
.result-card,
.category-row,
.form-card,
.contact-box,
.panel,
.page-head,
.company-layout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.card,
.category-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.card span,
.category-row small,
.result-card p {
  color: var(--muted);
}

.search-box,
.form-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

input,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}

textarea {
  min-height: 96px;
}

.results,
.category-list,
.media-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.contact-box {
  display: grid;
  gap: 10px;
}

.media-strip,
.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.diagnostic-frame {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.network-output {
  width: 100%;
  overflow: auto;
  background: #111827;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 5px;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 12px;
}

.tracking-pixel {
  position: absolute;
  left: -9999px;
  top: auto;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .hero,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-head h1 {
    font-size: 32px;
  }
}
