/* ===== Tokens ===== */
:root {
  --bg: #1a1815;
  --bg-2: #25221d;
  --bg-3: #2f2b25;
  --line: #3a3631;
  --ink: #f3ece1;
  --ink-mute: #a8a094;
  --ink-soft: #6b655a;
  --accent: #f3c34a;       /* жёлтый */
  --accent-2: #c54a1f;     /* оранжево-красный */
  --neon: #39ff14;         /* неоновый зелёный */
  --rust: #7a2e10;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --font-display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, object { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.05; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 24, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 20px;
  border: 2px solid var(--accent);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo-text em {
  font-style: normal;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  margin-left: 6px;
}
.nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.nav a {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
.phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--accent);
}
.phone-label {
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.phone-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.phone:hover { background: var(--accent); color: var(--bg); }
.phone:hover .phone-label, .phone:hover .phone-num { color: var(--bg); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad) clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.accent { color: var(--accent); }
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-mute);
  max-width: 56ch;
  margin-bottom: 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--bg);
}
.btn.primary:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-facts b {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 900;
}
.hero-facts span {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: lowercase;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign-art {
  width: 100%;
  max-width: 540px;
  filter: drop-shadow(var(--shadow));
}
.graffiti-frame {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 220px;
  pointer-events: none;
  transform: rotate(8deg);
  opacity: 0.85;
}

/* ===== Billboard section ===== */
.billboard-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 72px) var(--pad);
  position: relative;
  overflow: hidden;
}
.billboard-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 195, 74, 0.04) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(197, 74, 31, 0.06) 0, transparent 40%);
  pointer-events: none;
}
.billboard-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  position: relative;
}
.billboard-wrap object,
.billboard-wrap img {
  width: 100%;
  filter: drop-shadow(var(--shadow));
  display: block;
}
.billboard-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 7vw, 100px) var(--pad);
}
.section-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
  padding-top: 6px;
  border-top: 2px solid var(--accent);
  display: inline-block;
}
.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
}
.section-head p {
  color: var(--ink-mute);
  font-size: 17px;
  max-width: 64ch;
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 220ms ease;
}
.service-card:hover::before { height: 100%; }
.service-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  align-self: flex-start;
}
.service-mark.kia { background: var(--accent); color: var(--bg); }
.service-mark.hyu { background: var(--neon); color: var(--bg); }
.service-mark.chev { background: var(--accent-2); color: var(--ink); }
.service-card h3 {
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
}
.service-card p {
  color: var(--ink-mute);
  font-size: 15px;
}
.service-card.wide {
  grid-column: 1 / -1;
  background: var(--bg-2);
  border-color: var(--accent-2);
}
.service-card.wide h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
}
.diag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.diag-strip span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--neon);
  color: var(--neon);
  text-transform: lowercase;
}

/* ===== Photo galleries ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.photo figcaption {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: lowercase;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}
.photo.lead {
  grid-column: span 2;
  grid-row: span 2;
}
.photo.lead img {
  aspect-ratio: 3 / 4;
  height: 100%;
}
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo.lead { grid-column: span 1; grid-row: span 1; }
  .photo.lead img { aspect-ratio: 3 / 4; height: auto; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo.lead { grid-column: span 2; }
}

/* ===== Workshop / Waiting ===== */
.art-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.art-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.art-figure figcaption {
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: lowercase;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

/* ===== Contacts ===== */
.contacts { padding-bottom: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.contact-big {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.5px;
}
.contact-card p {
  color: var(--ink-mute);
  font-size: 15px;
}
.hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: none; }
.hours span { color: var(--ink-mute); }
.hours b { font-family: var(--font-mono); color: var(--accent); }
.map-stub {
  border-top: 1px solid var(--line);
  margin: 0 calc(-1 * var(--pad));
}
.map-stub svg { width: 100%; height: auto; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col .logo-text { font-size: 14px; }
.footer-col p {
  color: var(--ink-mute);
  font-size: 14px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-col a {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  font-weight: 900;
}
.footer-tag p {
  border: 1px dashed var(--accent-2);
  padding: 14px;
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: lowercase;
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 18px var(--pad);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .graffiti-frame { width: 140px; right: 0; bottom: -10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
  .phone { padding: 6px 12px; }
  .phone-num { font-size: 13px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts b { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-num { width: fit-content; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .graffiti-frame { display: none; }
}
@media (max-width: 480px) {
  .btn { padding: 14px 20px; font-size: 14px; }
  .contact-big { font-size: 22px; }
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hide platform badge injected via p.spru.io/badge.js */
#spru-pages-badge-host,
iframe[src*="p.spru.io"],
iframe[src*="badge"] { display: none !important; visibility: hidden !important; }

/* ===== Service Links (детальные страницы) ===== */
.service-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.service-link {
  position: relative;
  display: block;
  padding: 28px 24px 28px 80px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.service-link:hover {
  transform: translate(-2px, -2px);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-2);
}
.service-link:hover .service-link-arrow { transform: translateX(4px); color: var(--accent); }
.service-link-num {
  position: absolute;
  top: 28px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 4px 8px;
  letter-spacing: 0.05em;
}
.service-link h4 {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--ink);
}
.service-link p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}
.service-link-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--ink-mute);
  transition: transform 0.2s ease, color 0.2s ease;
}
@media (max-width: 960px) {
  .service-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-links { grid-template-columns: 1fr; }
  .service-link { padding: 24px 20px 24px 70px; }
  .service-link-num { top: 24px; left: 20px; }
  .service-link h4 { font-size: 20px; }
}
