/* ════════════════════════════════════════════════
   ГК ПОКРАСКА — стили правовых документов
   ════════════════════════════════════════════════ */

:root {
  --beige: #F5F0E8;
  --beige-light: #FAF7F2;
  --beige-mid: #EDE5D5;
  --gold: #C9A84C;
  --gold-dark: #A07830;
  --brown: #6B4C2A;
  --brown-dark: #3D2A14;
  --white: #FEFEFE;
  --text-main: #2A1F12;
  --text-mid: #5C4830;
  --text-muted: #9A8068;
  --border: rgba(107, 76, 42, 0.15);
  --container: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  background: var(--beige-light);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-dark); }

/* ── NAV ──────────────────────────────────────── */
.lg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(250, 247, 242, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.lg-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown-dark);
  white-space: nowrap;
}

.lg-nav-logo img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(42, 31, 18, .14);
}

.lg-nav-logo b { color: var(--gold-dark); font-weight: 800; }

.lg-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-mid);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.lg-nav-back:hover {
  color: var(--gold-dark);
  border-color: rgba(201, 168, 76, .5);
  box-shadow: 0 6px 20px rgba(42, 31, 18, .08);
}

/* ── WRAP ─────────────────────────────────────── */
.lg-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.lg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.lg-crumbs a { color: var(--text-muted); text-decoration: none; }
.lg-crumbs a:hover { color: var(--gold-dark); }

.lg-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--brown-dark);
  text-transform: none;
}

.lg-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 168, 76, 0) 100%);
}

.lg-rev {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

/* ── DOCUMENT ─────────────────────────────────── */
.lg-doc {
  margin-top: 36px;
  padding: clamp(26px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(42, 31, 18, .05);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-mid);
}

.lg-doc h2 {
  margin: 42px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown-dark);
}

.lg-doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lg-doc p { margin: 0 0 15px; }
.lg-doc p:last-child { margin-bottom: 0; }

.lg-doc ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.lg-doc li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.lg-doc li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.lg-doc a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, .45);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lg-doc a:hover { border-bottom-color: var(--gold-dark); }

/* ── OTHER DOCS ───────────────────────────────── */
.lg-other {
  margin-top: 44px;
  padding: 26px clamp(22px, 3vw, 34px);
  background: var(--beige-mid);
  border-radius: 14px;
}

.lg-other-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.lg-other-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lg-other-links a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-mid);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.lg-other-links a:hover {
  color: var(--gold-dark);
  border-color: rgba(201, 168, 76, .5);
  box-shadow: 0 6px 18px rgba(42, 31, 18, .07);
}

/* ── FOOTER ───────────────────────────────────── */
.lg-footer {
  display: grid;
  grid-template-columns: minmax(200px, .9fr) minmax(240px, 1fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 28px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  background: #160e06;
  border-top: 1px solid rgba(242, 216, 145, .13);
}

.lg-footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff8e8;
}

.lg-footer-logo img {
  width: 58px;
  height: 58px;
  min-width: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.lg-footer-logo > span {
  background: linear-gradient(90deg, #a07428 0%, #e8c060 25%, #fff3b0 50%, #e8c060 75%, #a07428 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lg-shimmer 3s linear infinite;
}

.lg-footer-logo > span span {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes lg-shimmer {
  to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-footer-logo > span { animation: none; }
  html { scroll-behavior: auto; }
}

.lg-footer-info {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 247, 242, .48);
  text-align: center;
}

.lg-footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lg-footer-links a {
  font-size: 13px;
  line-height: 1;
  color: rgba(250, 247, 242, .58);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  transition: color .18s ease;
}

.lg-footer-links a:hover { color: var(--gold); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 860px) {
  .lg-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 30px 20px;
  }
  .lg-footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .lg-nav { height: 62px; padding: 0 16px; }
  .lg-nav-logo { font-size: 13px; letter-spacing: .14em; gap: 10px; }
  .lg-nav-logo img { width: 34px; height: 34px; min-width: 34px; border-radius: 9px; }
  .lg-nav-back { padding: 9px 13px; font-size: 11px; }
  .lg-nav-back svg { display: none; }
  .lg-wrap { padding: 32px 16px 56px; }
  .lg-doc { font-size: 15px; line-height: 1.75; border-radius: 12px; }
  .lg-doc h2 { margin-top: 32px; padding-top: 22px; font-size: 14px; letter-spacing: .1em; }
  .lg-other-links a { font-size: 13px; padding: 9px 15px; }
}
