/* страницы документов: договор и этапы — в стиле PDF */
.doc-page { background: var(--soft); }

.doc-hero { background: radial-gradient(120% 140% at 100% 0%, #1d4fd8 0%, #163a9e 30%, #0f1f4d 62%, #0b1020 100%); color: #fff; padding: 28px 0 64px; }
.doc-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.doc-hero__tag { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #aebde0; }
.doc-hero__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #cdd7ee; }
.doc-hero__back:hover { color: #fff; }
.doc-hero__back svg { width: 16px; height: 16px; }
.doc-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfdaf5; }
.doc-hero h1 { font: 800 clamp(40px, 8vw, 84px)/1 'Unbounded', var(--font); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 18px; }
.doc-hero h1.doc-hero__h1--sm { font-size: clamp(30px, 5vw, 52px); text-transform: none; line-height: 1.1; margin-top: 16px; }
.doc-hero__lead { font-size: clamp(17px, 2vw, 21px); color: #d6def0; max-width: 620px; margin-bottom: 26px; }
.doc-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-hero__pills span { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.doc-hero__pills span i { font-style: normal; color: #7fa2ff; }
.doc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.doc-hero__actions .btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.doc-hero__actions .btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.doc-hero__actions svg { width: 18px; height: 18px; }

.doc-body { max-width: 920px; margin: -32px auto 0; padding: 0 24px 64px; position: relative; }
.doc-sheet { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 48px 56px; }
.doc-sheet + .doc-sheet { margin-top: 24px; }
.doc-sheet__title { font: 800 clamp(22px, 3vw, 30px)/1.2 'Unbounded', var(--font); margin-bottom: 8px; }
.doc-sheet__sub { color: var(--muted); padding-bottom: 22px; margin-bottom: 36px; border-bottom: 3px solid var(--blue); }

/* шапка договора — таблица сторон */
.doc-parties { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc-parties__row { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.doc-parties__row:first-child { border-top: 0; }
.doc-parties__k { background: var(--soft); padding: 20px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-parties__v { padding: 20px; display: flex; align-items: flex-end; gap: 8px; font-weight: 600; }
.doc-parties__row--hl .doc-parties__k { background: var(--blue-soft); color: var(--blue); }

.blank { display: inline-block; flex: 1; min-width: 80px; border-bottom: 1.5px solid #9aa6b8; height: 1.2em; vertical-align: bottom; }
.blank--s { flex: none; width: 110px; }
.blank--m { flex: none; width: 200px; }

.doc-bonus { display: flex; gap: 18px; margin-top: 28px; padding: 24px 28px; border-radius: 16px; background: var(--green-soft); color: #046c4e; }
.doc-bonus svg { width: 30px; height: 30px; flex: none; color: var(--green); }
.doc-bonus b { display: block; color: var(--green); margin-bottom: 4px; }

/* разделы договора */
.doc-sec { margin-top: 44px; }
.doc-sec:first-of-type { margin-top: 0; }
.doc-sec__h { display: flex; align-items: center; gap: 16px; font: 800 clamp(18px, 2.4vw, 22px)/1.25 'Unbounded', var(--font); margin-bottom: 20px; }
.doc-num { flex: none; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 9px; background: var(--blue); color: #fff; font: 700 14px/1 'Unbounded', var(--font); }
.doc-p { margin-bottom: 14px; text-align: justify; hyphens: auto; }
.doc-p b { color: var(--blue); margin-right: 6px; }
.doc-p--box { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 16px 20px; text-align: left; }
.doc-list { list-style: none; margin: 4px 0 16px 28px; }
.doc-list li { display: flex; gap: 12px; margin-bottom: 10px; }
.doc-list li::before { content: attr(data-l); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; margin-top: 1px; }

/* приложения */
.doc-badge { display: inline-flex; height: 32px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.doc-note { color: var(--muted); margin-bottom: 24px; }
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.doc-table th { background: #0b1020; color: #fff; text-align: left; padding: 14px 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.doc-table td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { width: 38%; background: var(--soft); font-weight: 700; }
.doc-table tr.is-blue td { background: var(--blue-soft); }
.doc-table tr.is-blue td:first-child { color: var(--blue); }
.doc-table tr.is-green td { background: var(--green-soft); }
.doc-table tr.is-green td:first-child { color: var(--green); }
.doc-table .line { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.doc-confirm { margin-top: 20px; padding: 20px 24px; border: 1.5px solid var(--blue); border-radius: 16px; font-size: 14px; }
.doc-confirm b { color: var(--blue); }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.doc-sign__card { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.doc-sign__card h4 { font: 800 15px/1 'Unbounded', var(--font); text-transform: uppercase; color: var(--blue); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc-sign__card p { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.doc-act__label { margin: 28px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-act__lines span { display: block; height: 30px; border-bottom: 1.5px solid #9aa6b8; }
.doc-act p.line { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* этапы */
.doc-h2 { display: flex; align-items: center; gap: 18px; font: 800 20px/1 'Unbounded', var(--font); text-transform: uppercase; margin-bottom: 32px; }
.doc-h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stages { list-style: none; }
.stages li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding-bottom: 30px; }
.stages li:not(:last-child)::before { content: ''; position: absolute; left: 25px; top: 52px; bottom: 0; width: 3px; background: linear-gradient(var(--blue), #8fb0f5); }
.stages__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; font: 700 17px/1 'Unbounded', var(--font); box-shadow: 0 6px 16px rgba(26, 86, 219, .25); }
.stages li.is-green .stages__n { background: var(--green); box-shadow: 0 6px 16px rgba(14, 159, 110, .25); }
.stages li.is-dark .stages__n { background: #0b1020; box-shadow: none; }
.stages h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 19px; font-weight: 800; margin: 2px 0 6px; }
.stages p { color: var(--muted); }
.tag-free { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.doc-important { margin-top: 8px; padding: 22px 26px; background: var(--soft); border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; color: #374151; }
.doc-outro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-outro__slogan { font: 800 17px/1.4 'Unbounded', var(--font); color: var(--blue); }
.doc-outro__contacts { text-align: right; color: var(--muted); font-size: 14px; }
.doc-outro__contacts a:first-child { display: block; font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }

.doc-foot { max-width: 920px; margin: 0 auto; padding: 0 24px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.doc-foot b { color: var(--text); }

@media (max-width: 760px) {
  .doc-hero { padding: 20px 0 52px; }
  .doc-hero__top { margin-bottom: 36px; }
  .doc-hero__tag { display: none; }
  .doc-body { padding: 0 12px 40px; }
  .doc-sheet { padding: 28px 20px; border-radius: 16px; }
  .doc-parties__row { grid-template-columns: 1fr; }
  .doc-parties__k { padding: 12px 16px 6px; }
  .doc-parties__v { padding: 6px 16px 16px; background: #fff; }
  .doc-parties__row .doc-parties__k { background: transparent; }
  .doc-bonus { padding: 18px; }
  .doc-p { text-align: left; }
  .doc-list { margin-left: 4px; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table thead { display: none; }
  .doc-table td:first-child { width: 100%; padding-bottom: 4px; border-top: 1px solid var(--line); }
  .doc-table td + td { border-top: 0; padding-top: 4px; }
  .doc-table tr:first-child td:first-child { border-top: 0; }
  .doc-sign { grid-template-columns: 1fr; }
  .stages li { grid-template-columns: 42px 1fr; gap: 14px; }
  .stages__n { width: 42px; height: 42px; font-size: 14px; border-radius: 12px; }
  .stages li:not(:last-child)::before { left: 20px; top: 42px; }
  .stages h3 { font-size: 17px; }
  .doc-outro__contacts { text-align: left; }
}

@media print {
  .doc-page { background: #fff; }
  .doc-hero__back, .doc-hero__actions { display: none; }
  .doc-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-body { margin-top: 0; }
  .doc-sheet { box-shadow: none; padding: 24px 0; }
  .doc-sheet + .doc-sheet { page-break-before: always; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
