/* ============================================================
   Добрый Волк — технические / юридические страницы
   Документы: политика, согласие, cookie, оферта, оплата,
   реквизиты, правила проживания, пользовательское соглашение.
   Использует токены из styles.css и шапку .a-header из article.css
   ============================================================ */

/* ---------- title band ---------- */
.lg-hero { position: relative; overflow: hidden; background: var(--pine-900); color: #fff; }
.lg-hero::after {
  content: ""; position: absolute; right: -6rem; top: -7rem;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,165,71,0.18), transparent 70%);
  pointer-events: none;
}
.lg-hero__inner { position: relative; z-index: 1; padding: 7rem 0 3.25rem; }
.lg-crumbs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8125rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.lg-crumbs a { color: rgba(255,255,255,0.6); transition: color .2s var(--ease); }
.lg-crumbs a:hover { color: var(--honey); }
.lg-crumbs svg { width: 0.875rem; height: 0.875rem; opacity: .55; }
.lg-kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--honey); margin-bottom: 1rem; }
.lg-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.125rem); line-height: 1.06; max-width: 22ch; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.lg-hero__meta { display: flex; flex-wrap: wrap; gap: 0.625rem 0.75rem; }
.lg-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: .04em; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 0.4375rem 0.875rem; border-radius: 6.25rem; }
.lg-chip svg { width: 0.9375rem; height: 0.9375rem; color: var(--honey); }

/* ---------- layout: sidebar + document ---------- */
.lg-layout { display: grid; grid-template-columns: 17rem 1fr; gap: 3.5rem; align-items: start; padding: 3.5rem 0 1.5rem; }

/* ---------- sidebar nav ---------- */
.lg-nav { position: sticky; top: 5.5rem; }
.lg-nav__title { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin: 0 0 1rem; padding-left: 0.25rem; }
.lg-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.lg-nav a { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.625rem 0.875rem; border-radius: 0.75rem; font-size: 0.9063rem; color: #4a473f; line-height: 1.3; transition: background .2s var(--ease), color .2s var(--ease); }
.lg-nav a:hover { background: var(--sand-100); color: var(--pine); }
.lg-nav a.is-active { background: var(--pine); color: #fff; font-weight: 600; }
.lg-nav a .n { font-family: var(--mono); font-size: 0.75rem; color: var(--honey-600); flex-shrink: 0; }
.lg-nav a.is-active .n { color: var(--honey); }

/* ---------- document column ---------- */
.lg-doc { max-width: 44rem; min-width: 0; }
.lg-doc__edition { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .04em; color: var(--gray); margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-line); }
.lg-doc__lead { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.5; color: var(--pine); margin: 0 0 2rem; text-wrap: pretty; }
.lg-doc h2 { font-size: 1.5rem; margin: 2.75rem 0 1rem; letter-spacing: -0.01em; }
.lg-doc h2:first-child { margin-top: 0; }
.lg-doc h2::before { content: ""; display: block; width: 2.25rem; height: 3px; background: var(--honey); border-radius: 2px; margin-bottom: 1rem; }
.lg-doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; color: var(--pine-700); margin: 1.75rem 0 0.625rem; }
.lg-doc p { font-size: 1.0625rem; line-height: 1.72; color: #36342c; margin: 0 0 1.125rem; }
.lg-doc p .cl { font-family: var(--mono); font-size: 0.8125rem; color: var(--honey-600); font-weight: 500; margin-right: 0.25rem; }
.lg-doc strong { color: var(--pine); font-weight: 600; }
.lg-doc a:not(.btn) { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(60,84,36,0.35); transition: text-decoration-color .2s var(--ease); }
.lg-doc a:not(.btn):hover { text-decoration-color: var(--honey); }

/* lists */
.lg-doc ul, .lg-doc ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.lg-doc li { position: relative; padding-left: 1.625rem; font-size: 1.0625rem; line-height: 1.62; color: #36342c; }
.lg-doc ul > li::before { content: ""; position: absolute; left: 0.3125rem; top: 0.66em; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--honey); }
.lg-doc ol { counter-reset: lgli; }
.lg-doc ol > li { counter-increment: lgli; }
.lg-doc ol > li::before { content: counter(lgli) "."; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--honey-600); font-weight: 500; line-height: 1.95; }
.lg-doc .lg-terms li strong { color: var(--pine); }

/* fill-in markers (to be verified by owner) */
mark.lg-fill { background: rgba(232,165,71,0.22); color: #7a5314; padding: 0.05em 0.4em; border-radius: 0.25rem; font-family: var(--mono); font-size: 0.85em; }

/* callout / notice */
.lg-callout { background: var(--cream-card); border: 1px solid var(--gray-line); border-left: 3px solid var(--honey); border-radius: var(--r-md); padding: 1.5rem 1.625rem; margin: 2rem 0; box-shadow: var(--shadow-soft); }
.lg-callout__title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.125rem; font-weight: 600; color: var(--pine); margin-bottom: 0.75rem; }
.lg-callout__title svg { width: 1.125rem; height: 1.125rem; color: var(--honey-600); flex-shrink: 0; }
.lg-callout p { font-size: 0.9688rem; margin-bottom: 0.75rem; }
.lg-callout ul { margin-bottom: 0.75rem; }
.lg-callout li { font-size: 0.9688rem; }
.lg-callout > :last-child { margin-bottom: 0; }
.lg-callout code { font-family: var(--mono); font-size: 0.85em; background: var(--sand-100); padding: 0.1em 0.4em; border-radius: 0.25rem; }

/* requisites / info card (pine) */
.lg-req { background: var(--pine); color: #f1ede1; border-radius: var(--r-md); padding: 1.625rem 1.875rem; margin: 1.5rem 0 2rem; }
.lg-req__row { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.6875rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.9688rem; }
.lg-req__row:last-child { border-bottom: none; }
.lg-req__row > span:first-child { color: rgba(255,255,255,0.65); flex-shrink: 0; }
.lg-req__row > span:last-child { color: #fff; font-weight: 500; text-align: right; }
.lg-req__row a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.5); }

/* cookie buttons preview (on /cookie page) */
.lg-cookiebar { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 1.25rem 0 0; }
.lg-cookiebar .btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* contacts footer of a document */
.lg-contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-line); font-size: 1rem; color: #4a473f; }
.lg-contact a { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; }

/* prev/next between documents */
.lg-pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--gray-line); }
.lg-pager a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; color: var(--pine); }
.lg-pager a svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.lg-pager a:hover .ar-l { transform: translateX(-3px); }
.lg-pager a:hover .ar-r { transform: translateX(3px); }
.lg-pager__sp { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .lg-layout { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.5rem; }
  .lg-nav { position: static; }
  .lg-nav__title { padding-left: 0; }
  .lg-nav ol { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .lg-nav a { padding: 0.5rem 0.875rem; border: 1px solid var(--gray-line); border-radius: 6.25rem; font-size: 0.8438rem; background: var(--cream-card); }
  .lg-nav a.is-active { border-color: var(--pine); }
  .lg-doc { max-width: none; }
}
@media (max-width: 760px) {
  .lg-hero__inner { padding: 5.5rem 0 2.5rem; }
  .lg-doc p, .lg-doc li { font-size: 1rem; }
  .lg-doc__lead { font-size: 1.1875rem; }
  .lg-req__row { flex-direction: column; gap: 0.25rem; }
  .lg-req__row > span:last-child { text-align: left; }
}
