/*!
 * Оформление юридических страниц vsevkudrovo.ru (/privacy/, /consent/, /cookies/, /pd/)
 * Не зависит от темы CMS: сбрасывает лишние отступы и задаёт читаемую колонку.
 */

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

body.pd-legal {
  margin: 0;
  padding: 0;
  background: #f3f6fa;
  color: #1b2430;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.pd-legal *,
body.pd-legal *::before,
body.pd-legal *::after {
  box-sizing: border-box;
}

body.pd-legal img {
  max-width: 100%;
  height: auto;
}

body.pd-legal a {
  color: #1f4f96;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.pd-legal a:hover {
  color: #d32f2f;
}

.pd-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.pd-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: #ffffff;
  color: #1b2430;
  z-index: 100001;
}

.pd-skip:focus {
  left: 10px;
  top: 10px;
}

/* ── шапка ─────────────────────────────────────────────────────────── */

.pd-header {
  background: #ffffff;
  border-bottom: 1px solid #e1e8f0;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.pd-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.pd-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.pd-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.pd-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pd-nav a {
  color: #22364f;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.pd-nav a:hover {
  color: #d32f2f;
  border-bottom-color: #d32f2f;
}

/* ── основная часть ────────────────────────────────────────────────── */

.pd-main {
  padding: 28px 0 44px;
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.pd-doc {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  padding: 30px 34px 38px;
  box-shadow: 0 10px 30px -22px rgba(16, 24, 40, 0.25);
}

.pd-crumbs {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7787;
}

.pd-crumbs a {
  color: #6b7787;
  text-decoration: none;
}

.pd-crumbs a:hover {
  color: #1f4f96;
  text-decoration: underline;
}

.pd-crumbs span {
  margin: 0 4px;
}

.pd-doc h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
  color: #122033;
  letter-spacing: -0.01em;
}

.pd-doc h2 {
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #e8edf4;
  font-size: 21px;
  line-height: 1.3;
  color: #122033;
}

.pd-doc h2:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.pd-doc h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  color: #122033;
}

.pd-doc p {
  margin: 0 0 12px;
}

.pd-doc ul,
.pd-doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.pd-doc li {
  margin: 0 0 6px;
}

.pd-doc strong {
  color: #122033;
}

.pd-doc code {
  padding: 1px 5px;
  background: #f1f5fa;
  border: 1px solid #e1e8f0;
  border-radius: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

.pd-doc table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.table-wrap {
  width: 100%;
  margin: 8px 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  margin: 0;
}

.pd-doc th,
.pd-doc td {
  padding: 9px 11px;
  border: 1px solid #dfe7f0;
  vertical-align: top;
  text-align: left;
}

.pd-doc th {
  background: #eef3fa;
  color: #122033;
  font-weight: 700;
}

.pd-doc tr:nth-child(even) td {
  background: #fafcfe;
}

.pd-doc .doc-meta {
  margin: 0 0 18px;
  color: #6b7787;
  font-size: 14px;
}

.pd-doc .doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
}

.pd-doc .doc-toc a {
  display: inline-block;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #d9e2ed;
  border-radius: 999px;
  font-size: 13px;
  color: #1f4f96;
  text-decoration: none;
}

.pd-doc .doc-toc a:hover {
  border-color: #1f4f96;
  background: #eef3fa;
}

.pd-doc .consent-sign {
  margin: 16px 0 4px;
  padding: 12px 16px;
  background: #f7f9fc;
  border-left: 4px solid #1f4f96;
  border-radius: 0 8px 8px 0;
  color: #3c4a5c;
  font-size: 14.5px;
}

.pd-doc .request-template {
  margin: 12px 0 20px;
  padding: 18px 20px;
  background: #fbfcfe;
  border: 1px dashed #b9c7d8;
  border-radius: 10px;
  font-size: 15px;
}

.pd-doc .request-template p {
  margin: 0 0 9px;
}

/* ── боковая колонка ───────────────────────────────────────────────── */

.pd-side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.pd-side__card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.pd-side__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7787;
}

.pd-side a {
  display: block;
  padding: 5px 0;
  color: #22364f;
  text-decoration: none;
  border-bottom: 1px solid #f0f3f7;
}

.pd-side a:last-of-type {
  border-bottom: 0;
}

.pd-side a:hover {
  color: #d32f2f;
}

.pd-side p {
  margin: 0 0 8px;
  color: #3c4a5c;
}

.pd-side__btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #c9d3df;
  border-radius: 8px;
  background: #ffffff;
  color: #1f4f96;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pd-side__btn:hover {
  border-color: #1f4f96;
  background: #f7f9fc;
}

/* ── подвал ────────────────────────────────────────────────────────── */

.pd-footer {
  background: #12325e;
  color: #dbe6f5;
  font-size: 13.5px;
}

.pd-footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.pd-footer a,
body.pd-legal .pd-footer a {
  color: #ffffff;
  text-decoration: none;
}

.pd-footer a:hover {
  text-decoration: underline;
}

.pd-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* ── адаптив ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .pd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-side {
    position: static;
    grid-row: 2;
  }

  .pd-side__card {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .pd-wrap {
    padding: 0 14px;
  }

  .pd-header__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .pd-nav {
    gap: 4px 14px;
    font-size: 13px;
  }

  .pd-main {
    padding: 18px 0 30px;
  }

  .pd-doc {
    padding: 20px 16px 26px;
    border-radius: 10px;
  }

  .pd-doc h1 {
    font-size: 24px;
  }

  .pd-doc h2 {
    font-size: 18px;
    margin-top: 26px;
    padding-top: 14px;
  }

  .pd-doc table {
    font-size: 13px;
  }

  .pd-doc .table-wrap {
    overflow: visible;
  }

  .pd-doc .table-wrap table {
    min-width: 0;
  }

  .pd-doc .table-wrap thead {
    display: none;
  }

  .pd-doc .table-wrap tr {
    display: block;
    margin: 0 0 10px;
    padding: 4px 0;
    background: #ffffff;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
  }

  .pd-doc .table-wrap td {
    display: block;
    position: relative;
    padding: 8px 12px 8px 44%;
    border: 0;
    border-bottom: 1px dashed #e8edf4;
  }

  .pd-doc .table-wrap td:last-child {
    border-bottom: 0;
  }

  .pd-doc .table-wrap td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 8px;
    width: 38%;
    font-weight: 700;
    color: #122033;
  }

  .pd-doc .table-wrap td:empty {
    display: none;
  }

  .pd-footer__in {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── печать ────────────────────────────────────────────────────────── */

@media print {
  body.pd-legal {
    background: #ffffff;
    font-size: 12pt;
  }

  .pd-header,
  .pd-footer,
  .pd-side,
  .pd-crumbs,
  .pd-cookie,
  .pd-skip {
    display: none !important;
  }

  .pd-main {
    padding: 0;
  }

  .pd-grid {
    display: block;
  }

  .pd-doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .pd-doc h2 {
    page-break-after: avoid;
  }
}
