/*
Theme Name: График работ
Theme URI: https://mgmarket6at.us/
Author: mgmarket6 at
Description: Справочник доставки заказа в образе строительного графика — этапы от «площадки» до сдачи.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: grafik-rabot
*/

:root {
  --ink: #2a2a2a;
  --muted: #5c6470;
  --bg: #f0ede6;
  --sheet: #faf8f4;
  --rule: #c9c4ba;
  --route: #2c3d55;
  --accent: #c45c26;
  --link: #1d4b6e;
  --grid: rgba(92, 100, 112, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  font: 17px/1.65 "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--route); }
.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--route); color: #fff; padding: 8px 12px;
}
.skip:focus { top: 8px; }

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 0 var(--accent);
}
.blueprint {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    var(--route) 12px 24px,
    transparent 24px 36px
  );
  opacity: 0.9;
}
.mast-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
  max-width: 1100px; margin: 0 auto; padding: 16px 22px 8px;
}
.brand { color: var(--ink); text-decoration: none; }
.brand b {
  display: block;
  font: 700 26px/1.15 "PT Serif", "Times New Roman", Georgia, serif;
  letter-spacing: -0.02em;
}
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.stamp {
  margin: 0; padding: 8px 12px;
  border: 2px dashed var(--route);
  font: 12px/1.35 ui-monospace, "Consolas", "Liberation Mono", monospace;
  color: var(--route); text-align: right;
  background: repeating-linear-gradient(0deg, rgba(196, 92, 38, 0.06) 0 2px, transparent 2px 4px);
}
.rail { max-width: 1100px; margin: 0 auto; padding: 0 8px 10px; overflow-x: auto; }
.rail ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.rail a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px;
  color: var(--ink); text-decoration: none; font-size: 14px;
  border-bottom: 3px solid transparent;
}
.rail a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--route); font-weight: 700; }
.rail a:hover { border-bottom-color: var(--route); }

.desk {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px;
  max-width: 1100px; margin: 0 auto; padding: 22px 22px 8px;
}
.spec {
  background: var(--sheet); border: 1px solid var(--rule); padding: 14px;
  align-self: start;
  border-left: 4px solid var(--accent);
  border-top: 1px dashed var(--muted);
}
.spec p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.spec strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.sheet { min-width: 0; }
.paper {
  background: var(--sheet); padding: 28px 32px 36px;
  border: 1px solid var(--rule);
  box-shadow: 4px 4px 0 rgba(44, 61, 85, 0.08);
}
.kicker {
  margin: 0 0 8px; color: var(--accent);
  font: 700 11px/1.2 ui-monospace, "Consolas", monospace;
  letter-spacing: 0.12em; text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
}
.lead { font-size: 18px; margin-top: 0; color: var(--muted); max-width: 54em; }
.crumb { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.paper h2 {
  margin: 1.35em 0 0.35em;
  font-size: 22px;
  line-height: 1.25;
  color: var(--route);
  font-family: "PT Serif", Georgia, serif;
}
.paper p { margin: 0.65em 0; max-width: 54em; hyphens: auto; }
.paper ul { margin: 0.4em 0 0.9em; padding-left: 1.2em; max-width: 54em; }
.paper > p:first-of-type { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.card {
  background: #f3f0e8;
  color: inherit; text-decoration: none;
  padding: 14px;
  border-left: 4px solid var(--route);
  border-top: 1px dotted var(--rule);
}
.card strong { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 14px; }
.faq details { border-top: 1px solid var(--rule); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.note {
  margin-top: 18px; padding: 12px 14px;
  background: #e8e2d8;
  font-size: 15px;
  border-left: 4px solid var(--accent);
}
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 16px; line-height: 1.45; }
table th, table td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
table th { width: 34%; background: #ebe6dc; color: var(--route); font-weight: 700; }
.colophon {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px;
  max-width: 1100px; margin: 8px auto 32px; padding: 16px 22px 0;
  border-top: 4px solid var(--accent);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.colophon strong { display: block; color: var(--ink); margin-bottom: 4px; }
.colophon .legal {
  grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 13px;
}
.shot { margin: 0 0 18px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.shot--lead img { max-height: 420px; object-fit: cover; }
.acts { margin: 16px 0 20px; }
a.go {
  display: inline-block; padding: 12px 18px;
  background: var(--accent); color: #fff !important; text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--route);
}
a.go:hover { filter: brightness(1.05); }

@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr; }
}
