/* ══════════════════════════════════════════
   CONTENT PAGE
   https://golden-line.ru/
   NOTE: gl-breadcrumb, gl-page-h1, gl-page-sub — in main.css
══════════════════════════════════════════ */

#page-content {
  padding-top: calc(var(--nav-h) + 36px);
  min-height: 100vh;
}

/* ── Page Header ── */
.gl-content-header {
  padding: 32px 32px 0;
  border-bottom: 1px solid var(--gl-line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ══════════════════════════════════════════
   LAYOUT — Sidebar + Content
══════════════════════════════════════════ */
.gl-content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: flex-start;
}

/* ── Navigation Sidebar ── */
.gl-content-nav {
  border-right: 1px solid var(--gl-line);
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  max-height: calc(100vh - var(--nav-h) - 36px);
  overflow-y: auto;
  scrollbar-width: none;
}
.gl-content-nav::-webkit-scrollbar { display: none; }

.gl-content-nav-title {
  padding: 16px 20px 12px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gl-muted);
  border-bottom: 1px solid var(--gl-line);
}

.gl-content-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--gl-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--gl-line);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.gl-content-nav-link:hover {
  color: var(--gl-ink);
  background: var(--gl-bg2);
}
.gl-content-nav-link.active {
  color: var(--gl-ink);
  background: var(--gl-bg2);
}
.gl-content-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gl-ink);
}

/* ── Content Area ── */
.gl-content-body {
  padding: 48px 56px;
  max-width: 760px;
}

/* Content panels */
.gl-content-pane { display: none; }
.gl-content-pane.active { display: block; }

/* Typography */
.gl-content-section {
  margin-bottom: 40px;
}

.gl-content-section-title {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gl-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gl-line);
}

.gl-content-h2 {
  font-family: var(--gl-disp);
  font-size: 32px;
  line-height: 0.9;
  color: var(--gl-ink);
  margin-bottom: 16px;
}

.gl-content-p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gl-muted);
  margin-bottom: 14px;
}

.gl-content-p:last-child { margin-bottom: 0; }

.gl-content-p strong { color: var(--gl-ink); font-weight: 400; }

.gl-content-p a {
  color: var(--gl-ink);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.gl-content-p a:hover { opacity: 0.7; }

/* Info blocks */
.gl-content-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gl-line);
  border: 1px solid var(--gl-line);
  margin-bottom: 24px;
}

.gl-content-info-cell {
  background: var(--gl-bg);
  padding: 16px 20px;
}

.gl-content-info-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gl-muted);
  margin-bottom: 6px;
}

.gl-content-info-val {
  font-size: 13px;
  color: var(--gl-ink);
  line-height: 1.5;
}

.gl-content-info-val a {
  color: var(--gl-ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.gl-content-info-val a:hover { opacity: 0.7; }

/* Contact blocks */
.gl-content-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gl-line);
  border: 1px solid var(--gl-line);
  margin-bottom: 32px;
}

.gl-content-contact-cell {
  background: var(--gl-bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-content-contact-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gl-muted);
}

.gl-content-contact-val {
  font-size: 14px;
  color: var(--gl-ink);
  text-decoration: none;
  line-height: 1.5;
  transition: opacity 0.2s;
  display: block;
}
a.gl-content-contact-val:hover { opacity: 0.7; }

.gl-content-contact-note {
  font-size: 10px;
  color: var(--gl-muted);
  letter-spacing: 0.05em;
}

/* Social links */
.gl-content-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gl-content-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gl-line);
  background: none;
  padding: 10px 16px;
  font-family: var(--gl-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gl-ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.gl-content-social-btn:hover {
  border-color: var(--gl-ink);
  background: var(--gl-bg2);
  color: var(--gl-ink);
}

/* Legal table (Реквизиты) */
.gl-content-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 24px;
}

.gl-content-legal-table tr {
  border-bottom: 1px solid var(--gl-line);
}
.gl-content-legal-table tr:last-child { border-bottom: none; }

.gl-content-legal-table td {
  padding: 12px 16px;
  vertical-align: top;
}

.gl-content-legal-table td:first-child {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gl-muted);
  width: 160px;
  padding-left: 0;
}

.gl-content-legal-table td:last-child {
  color: var(--gl-ink);
}

/* Hours note */
.gl-content-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gl-muted);
  padding: 14px 16px;
  border: 1px solid var(--gl-line);
  margin-bottom: 28px;
}
.gl-content-hours svg { color: var(--gl-gold); flex-shrink: 0; }

/* Numbered list for AGB */
.gl-content-ol {
  counter-reset: section;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.gl-content-ol li {
  counter-increment: section;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gl-muted);
  line-height: 1.9;
  padding: 12px 0;
  border-bottom: 1px solid var(--gl-line);
}
.gl-content-ol li:last-child { border-bottom: none; }

.gl-content-ol li::before {
  content: counter(section, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gl-muted);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .gl-content-layout { grid-template-columns: 1fr; }
  .gl-content-nav {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--gl-line);
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .gl-content-nav-link {
    scroll-snap-align: center;
  }
  .gl-content-nav-title { display: none; }
  .gl-content-nav-link {
    border-bottom: none;
    border-right: 1px solid var(--gl-line);
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 11px;
  }
  .gl-content-nav-link.active::before {
    top: auto; bottom: 0; left: 0; right: 0;
    width: auto; height: 2px;
  }
  .gl-content-body { padding: 32px 24px; }
  .gl-content-contacts { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .gl-content-header { padding: 20px 16px 0; }
  .gl-content-body { padding: 24px 16px 40px; }
  .gl-content-info-grid { grid-template-columns: 1fr; }
  .gl-content-contacts { grid-template-columns: 1fr; }
}