
.documents-page{padding:clamp(2.5rem,4vw,4rem) 0 clamp(6rem,9vw,9rem);background:#f4f7fc}
.documents-layout{width:var(--container-width);max-width:var(--container-max-width);margin:auto;display:grid;grid-template-columns:20rem minmax(0,1fr);gap:1.4rem;align-items:start}
.docs-sidebar{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto;overscroll-behavior:contain}
.docs-sidebar__title{margin:0 0 1.6rem;font-size:clamp(2.8rem,4.8vw,5rem);line-height:.95;letter-spacing:-.05em;color:var(--text-heading-main)}
.docs-sidebar__box{overflow:hidden;border:1px solid var(--border-default-2);border-radius:1.4rem;background:#fff;box-shadow:0 .8rem 2rem rgba(25,52,98,.06)}
.docs-sidebar__all{display:block;padding:1.5rem 1.5rem .6rem;color:#9aa8bd;font-weight:600}
.docs-sidebar__group{padding:1rem 1rem 0}
.docs-sidebar__group h2{margin:0 0 .55rem;padding-inline:.5rem;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#9aa8bd}
.docs-nav-card{display:block;width:100%;padding:1rem;border:0;border-radius:1rem;text-align:left;background:transparent;color:var(--text-heading-brand);cursor:pointer}
.docs-nav-card strong{display:block;font-size:.86rem;line-height:1.3}
.docs-nav-card span{display:inline-flex;margin-top:.45rem;padding:.25rem .55rem;border-radius:999px;font-size:.65rem;color:var(--text-accent);background:var(--color-brand-pale)}
.docs-nav-card:hover{background:#f7f9fd}
.docs-nav-card.is-active{color:#fff;background:linear-gradient(145deg,#0f1f4c,#173777);box-shadow:0 .7rem 1.4rem rgba(18,42,93,.22)}
.docs-nav-card.is-active span{color:#bcd5ff;background:rgba(78,139,255,.18)}
.docs-sidebar__toc{margin:1.2rem 1.5rem 0;padding-top:1.2rem;border-top:1px solid var(--border-default-2)}
.docs-sidebar__toc::before{content:"Содержание";display:block;margin-bottom:.65rem;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#9aa8bd}
.docs-toc-link{display:grid;grid-template-columns:1.5rem 1fr;gap:.45rem;padding:.38rem 0;font-size:.72rem;line-height:1.3;color:var(--text-secondary)}
.docs-toc-link:hover{color:var(--text-accent)}
.docs-sidebar__download{display:flex;align-items:center;justify-content:center;gap:.55rem;margin-top:1.2rem;padding:1rem;border-top:1px solid var(--border-default-2);color:var(--text-heading-brand);font-size:.8rem;font-weight:600}
.docs-sidebar__download svg{width:1rem;height:1rem}
.docs-content{min-width:0}
.docs-document{overflow:hidden;border:1px solid var(--border-default-2);border-radius:1.4rem;background:#fff;box-shadow:0 .8rem 2rem rgba(25,52,98,.06)}
.docs-document__header{padding:clamp(1.8rem,2.6vw,2.6rem);border-bottom:1px solid var(--border-default-2)}
.docs-document__eyebrow{display:block;margin-bottom:.7rem;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#9aa8bd}
.docs-document__header h2{margin:0;max-width:56rem;font-size:clamp(1.65rem,2.45vw,2.55rem);line-height:1.08;letter-spacing:-.03em;color:var(--text-heading-main)}
.docs-document__tags{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.docs-document__tags span{padding:.35rem .65rem;border-radius:999px;font-size:.68rem;font-weight:600;color:var(--text-accent);background:var(--color-brand-pale)}
.docs-document__body{padding:clamp(1.8rem,3vw,3rem)}
.docs-section{padding:0 0 clamp(1.5rem,2.2vw,2.2rem);margin-bottom:clamp(1.5rem,2.2vw,2.2rem);border-bottom:1px solid var(--border-default-2)}
.docs-section:last-child{margin-bottom:0;border-bottom:0}
.docs-section__heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem;margin-bottom:1.2rem}
.docs-section__heading span{display:grid;place-items:center;width:2.35rem;height:2.35rem;border-radius:.65rem;font-size:.8rem;font-weight:700;color:var(--text-accent);background:var(--color-brand-pale)}
.docs-section__heading h3{margin:0;font-size:clamp(1.3rem,1.8vw,1.85rem);line-height:1.15;color:var(--text-heading-brand)}
.docs-section p{margin:0 0 .85rem;font-size:clamp(.88rem,.98vw,1rem);line-height:1.58;color:var(--text-primary)}
.docs-section p.is-subheading{margin-top:1.25rem;font-weight:700;color:var(--text-heading-brand)}
@media(max-width:900px){
 .documents-layout{grid-template-columns:17rem minmax(0,1fr)}
}
@media(max-width:767px){
 .documents-page{padding-top:7vw}
 .documents-layout{grid-template-columns:100%;gap:5vw}
 .docs-sidebar{position:static;max-height:none;overflow-y:visible}
 .docs-sidebar__title{font-size:clamp(2.7rem,13vw,4rem)}
 .docs-sidebar__box{overflow:visible;border:0;background:transparent;box-shadow:none}
 .docs-sidebar__all,.docs-sidebar__group h2,.docs-sidebar__download{display:none}
 .docs-sidebar__group{display:flex;gap:.7rem;overflow-x:auto;padding:0 0 .3rem}
 .docs-sidebar__group+.docs-sidebar__group{margin-top:.7rem}
 .docs-nav-card{flex:0 0 auto;width:13rem;border:1px solid var(--border-default-2);background:#fff}
 .docs-nav-card.is-active{border-color:transparent}
 .docs-document__header,.docs-document__body{padding:6vw}
 .docs-document__header h2{font-size:clamp(1.65rem,7.3vw,2.35rem)}
 .docs-section__heading{align-items:start}
 .docs-section p{font-size:clamp(.9rem,3.75vw,1rem)}
}

/* ========================================
   DOCUMENTS — FINAL FIGMA TUNING
======================================== */

.documents-page {
  padding-top: clamp(2rem, 3vw, 3rem);
  background: #f4f7fc;
}

.documents-layout {
  width: min(94%, 96rem);
  max-width: none;

  grid-template-columns:
    clamp(17rem, 20vw, 19.5rem)
    minmax(0, 1fr);

  gap: clamp(1.2rem, 1.7vw, 1.7rem);
}

/* Заголовок слева */

.docs-sidebar__title {
  margin-bottom: clamp(1.5rem, 2vw, 2rem);

  font-size: clamp(3rem, 4.3vw, 4.4rem);
  font-weight: var(--font-weight-semibold);
  line-height: 0.95;
  letter-spacing: -0.055em;

  color: #000000;
}

/* Левая карточка */

.docs-sidebar__box {
  border-radius: 1.15rem;
  box-shadow: 0 0.65rem 1.5rem rgba(25, 52, 98, 0.05);
}

.docs-sidebar__all {
  padding: 1.4rem 1.5rem 0.7rem;

  font-size: 0.95rem;
  color: #9aa8bd;
}

.docs-sidebar__group {
  padding-inline: 0.8rem;
}

.docs-sidebar__group h2 {
  padding-inline: 0.45rem;
  font-size: 0.64rem;
}

.docs-nav-card {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
}

.docs-nav-card strong {
  font-size: clamp(0.76rem, 0.84vw, 0.86rem);
  line-height: 1.32;
}

.docs-nav-card span {
  margin-top: 0.4rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.62rem;
}

/* Правая карточка */

.docs-document {
  border-radius: 1.15rem;
  box-shadow: 0 0.65rem 1.5rem rgba(25, 52, 98, 0.05);
}

.docs-document__header {
  padding:
    clamp(1.6rem, 2.1vw, 2.1rem)
    clamp(1.8rem, 2.5vw, 2.5rem)
    clamp(1.5rem, 2vw, 2rem);
}

.docs-document__eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.63rem;
}

.docs-document__header h2 {
  max-width: 54rem;

  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.025em;

  color: #071a43;
}

.docs-document__tags {
  margin-top: 0.85rem;
}

.docs-document__tags span {
  padding: 0.28rem 0.58rem;
  font-size: 0.63rem;
}

/* Текст документа */

.docs-document__body {
  padding:
    clamp(2rem, 2.8vw, 2.8rem)
    clamp(2rem, 2.8vw, 2.8rem);
}

.docs-section {
  margin-bottom: clamp(1.4rem, 2vw, 2rem);
  padding-bottom: clamp(1.4rem, 2vw, 2rem);
}

.docs-section__heading {
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.docs-section__heading span {
  width: 2.1rem;
  height: 2.1rem;

  border-radius: 0.55rem;
  font-size: 0.72rem;
}

.docs-section__heading h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  line-height: 1.15;
}

.docs-section p {
  max-width: 57rem;
  margin-bottom: 0.75rem;

  font-size: clamp(0.82rem, 0.9vw, 0.92rem);
  line-height: 1.58;
}

/* Содержание слева */

.docs-sidebar__toc {
  max-height: 27rem;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.docs-toc-link {
  grid-template-columns: 1.35rem 1fr;
  font-size: 0.68rem;
}

@media (max-width: 767px) {
  .documents-layout {
    width: min(92%, 100%);
    grid-template-columns: 100%;
  }

  .docs-sidebar__title {
    margin-bottom: 7vw;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .docs-document__header {
    padding: 6vw;
  }

  .docs-document__body {
    padding: 7vw 6vw;
  }

  .docs-document__header h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .docs-section__heading h3 {
    font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  }
}

.docs-sidebar__title {
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 767px) {
  .docs-sidebar__title {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }
}
.docs-section__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.docs-section__heading span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  color: var(--text-accent);
  background: var(--color-brand-pale);
}

.docs-section__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.docs-section__heading span {
  display: grid;
  place-items: center;

  width: 2.1rem;
  height: 2.1rem;

  border-radius: 0.55rem;

  font-size: 0.72rem;
  font-weight: 700;

  color: var(--text-accent);
  background: var(--color-brand-pale);
}

.docs-section__heading h3 {
  margin: 0;

  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  line-height: 1.15;

  color: var(--text-heading-brand);
}

/* ========================================
   FIRST DOCUMENT SECTION FIX
======================================== */

.docs-panel[data-panel="clients"]
.docs-document__body
> .docs-section:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
}

/* Цифра 01 */

.docs-panel[data-panel="clients"]
.docs-document__body
> .docs-section:first-child
> p:first-child {
  grid-column: 1;
  grid-row: 1;

  display: grid;
  place-items: center;

  width: 2.1rem;
  height: 2.1rem;
  margin: 0;

  border-radius: 0.55rem;

  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;

  color: var(--text-accent);
  background: var(--color-brand-pale);
}

/* Заголовок Общие положения */

.docs-panel[data-panel="clients"]
.docs-document__body
> .docs-section:first-child
> h3:first-of-type {
  grid-column: 2;
  grid-row: 1;

  margin: 0;

  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;

  color: var(--text-heading-brand);
}

/* Весь юридический текст начинается со второй строки */

.docs-panel[data-panel="clients"]
.docs-document__body
> .docs-section:first-child
> p:not(:first-child) {
  grid-column: 1 / -1;
}

/* Отступ перед первым пунктом 1.1 */

.docs-panel[data-panel="clients"]
.docs-document__body
> .docs-section:first-child
> h3:first-of-type
+ p {
  margin-top: 1rem;
}

/* Первый заголовок документа */

.docs-first-heading {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;

  width: 100%;
  margin: 0 0 1rem !important;
}

.docs-first-heading__number {
  flex: 0 0 2.1rem !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 2.1rem !important;
  height: 2.1rem !important;
  min-width: 2.1rem !important;
  min-height: 2.1rem !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 0.55rem !important;

  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  color: #2468f2 !important;
  background: #e4efff !important;
}

.docs-first-heading__title {
  margin: 0 !important;

  font-size: clamp(1.25rem, 1.55vw, 1.6rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;

  color: #071a43 !important;
}

.docs-subsection {
  margin-top: 1.8rem;
}

.docs-subsection:first-of-type {
  margin-top: 0;
}

.docs-subsection h4 {
  margin: 0 0 1rem;

  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;

  color: #071a43;
}

.docs-subsection p {
  margin-bottom: 0;
}

.docs-list {
  display: grid;
  gap: 0.75rem;

  margin: 1rem 0 0;
  padding: 0;

  list-style: none;
}

.docs-list li {
  position: relative;
  padding-left: 1.4rem;

  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.55;

  color: #34476f;
}

.docs-list li::before {
  content: "";

  position: absolute;
  top: 0.72em;
  left: 0;

  width: 0.38rem;
  height: 0.38rem;

  border-radius: 50%;
  background: #8bbcff;
}

.docs-subsection strong {
  font-weight: 700;
  color: #071a43;
}

.docs-subsection > p + p {
  margin-top: 1.65rem;
}

.docs-subsection p strong {
  margin-right: 0.3rem;
  font-weight: 700;
  color: #071a43;
}

.docs-list + p {
  margin-top: 1.65rem;
}

.docs-section__heading h3 {
  max-width: 52rem;
}

.docs-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;

  border: 1px solid #dfe6f1;
  border-radius: 0.85rem;

  background: #ffffff;
}

.docs-table {
  width: 100%;
  min-width: 48rem;

  border-collapse: separate;
  border-spacing: 0;

  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.45;

  color: #34476f;
}

.docs-table th,
.docs-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;

  border-right: 1px solid #e5eaf2;
  border-bottom: 1px solid #e5eaf2;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: 0;
}

.docs-table tbody tr:last-child td {
  border-bottom: 0;
}

.docs-table thead th {
  font-weight: 600;
  color: #ffffff;
  background: #0d214d;
}

.docs-table thead th:first-child {
  border-top-left-radius: 0.75rem;
}

.docs-table thead th:last-child {
  border-top-right-radius: 0.75rem;
}

.docs-table__number {
  width: 3.4rem;
  text-align: center !important;
}

.docs-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.docs-table-wrap + .docs-table-wrap {
  margin-top: 1.4rem;
}

@media (max-width: 767px) {
  .docs-table-wrap {
    margin-inline: -2vw;
  }

  .docs-table {
    min-width: 44rem;
  }

  .docs-table th,
  .docs-table td {
    padding: 0.8rem;
  }
}

.docs-company {
  margin-top: 2rem;
}

.docs-company__label,
.docs-company__name {
  margin: 0;
}

.docs-company__label {
  font-size: 1rem;
  font-weight: 400;
  color: #34476f;
}

.docs-company__name {
  margin-top: 1rem;

  font-size: 1rem;
  font-weight: 400;
  color: #34476f;
}

.docs-table-wrap--details {
  margin-top: 1.2rem;
}

.docs-table--details {
  min-width: 42rem;
}

.docs-table--details th,
.docs-table--details td {
  padding: 0.85rem 1rem;
}

.docs-table--details th {
  width: 14rem;

  font-weight: 600;
  color: #65738f;
  background: #f4f7fc;
}

.docs-table--details td {
  color: #071a43;
  background: #ffffff;
}

.docs-company__note {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;

  font-size: clamp(0.82rem, 0.9vw, 0.92rem) !important;
  line-height: 1.5 !important;
  color: #34476f !important;
}

.docs-document__intro {
  margin-bottom: clamp(2rem, 2.8vw, 3rem);
  padding-bottom: clamp(2rem, 2.8vw, 3rem);

  border-bottom: 1px solid #e3e8f0;
}

.docs-document__intro p {
  margin: 0 0 1.4rem;

  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.65;

  color: #34476f;
}

.docs-document__intro p:last-child {
  margin-bottom: 0;
}

.docs-text-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.docs-text-list p {
  margin: 0;
}

.docs-company__details {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.docs-company__details p {
  margin: 0;
}

.docs-company__name {
  margin: 0;
  font-weight: 400;
  color: #34476f;
}

.docs-subsection--accent-list {
  display: grid;
  gap: 1.15rem;
}

.docs-subsection--accent-list p {
  margin: 0;
}

.docs-table-wrap--details {
  margin-top: 1.2rem;
}

.docs-table--details {
  min-width: 42rem;
}

.docs-table--details th {
  width: 14rem;
  font-weight: 600;
  color: #65738f;
  background: #f4f7fc;
}

.docs-table--details td {
  color: #071a43;
  background: #ffffff;
}

.docs-panel[data-panel="privacy"] .docs-table--details th {
  width: 12rem;
}

.docs-section--consent {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-consent-list {
  display: grid;
  gap: clamp(1.35rem, 2vw, 2rem);
}

.docs-consent-list p {
  margin: 0;
  max-width: none;

  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.65;
  color: var(--text-primary);
}

.docs-consent-list strong {
  font-weight: 700;
  color: var(--text-heading-brand);
}

@media (max-width: 767px) {
  .docs-toolbar,
  .docs-header__actions,
  .docs-document__actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .docs-download,
  .docs-download-button,
  [data-download-pdf] {
    display: inline-flex;
    width: 100%;
    min-height: 48px;

    align-items: center;
    justify-content: center;
    gap: 8px;

    position: relative;
    z-index: 2;
  }
}