/* Страницы документов (оферта, политика, согласия). Светлая тема системы сайта: #F4EEE4 / #14302A / #5B6A61 / #7D5E27.
   Верстка от 320 px, текст ≥ 16 px, без внешних скриптов. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #F4EEE4; }
body {
  margin: 0; background: #F4EEE4; color: #14302A;
  font: 300 16px/1.65 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
p, ul, ol { margin: 0; }
a { color: #14302A; text-decoration-color: #7D5E27; text-underline-offset: 4px; }
a:hover { color: #7D5E27; }
:focus-visible { outline: 2px solid #7D5E27; outline-offset: 3px; }

.doc {
  max-width: 760px; margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

/* шапка: логотип и ссылка назад */
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(125, 94, 39, .35); }
.doc__logo { display: block; min-height: 44px; }
.doc__logo img { display: block; width: 96px; height: auto; }
.doc__back {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
  font: 500 16px/1.4 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #7D5E27;
  transition: color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent;
}
.doc__back:hover { color: #14302A; }
.doc__back:active { opacity: .65; }

/* текст документа: форматирование из Word */
.doc__body { padding-top: 32px; }
.p { margin: 0 0 12px; hyphens: auto; -webkit-hyphens: auto; }
.p--center { text-align: center; }
.p--right { text-align: right; }
.p strong { font-weight: 500; }
.p--h { margin-top: 28px; font: 400 clamp(20px, 5vw, 26px)/1.25 Oranienbaum, serif; hyphens: manual; -webkit-hyphens: manual; }
.p--h strong { font-weight: 400; }
.p--h.p--center:first-child { margin-top: 0; font-size: clamp(30px, 8vw, 44px); line-height: 1.12; }
.gap { height: 12px; }
.p a { overflow-wrap: anywhere; }

/* нумерация из Word: номер висит слева */
.n { display: flex; gap: 10px; }
.n__l { flex: none; min-width: 32px; color: #7D5E27; font-weight: 500; font-variant-numeric: tabular-nums; }
.n__t { min-width: 0; flex: 1; }
.n--dash .n__l { min-width: 16px; }
.n1 { padding-left: 16px; }
.n2, .n3 { padding-left: 32px; }
.fnref { font-size: 12px; line-height: 0; color: #7D5E27; }

/* сноски */
.fns { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(125, 94, 39, .35); color: #5B6A61; }
.p--note { color: #5B6A61; }

/* таблицы из Word, если есть */
.tbl { margin: 12px 0 16px; overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl td { padding: 8px 10px; border: 1px solid rgba(125, 94, 39, .35); vertical-align: top; min-width: 112px; }

/* низ: реквизиты и ссылки */
.doc__foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(125, 94, 39, .35); color: #5B6A61; }
.doc__foot p + p { margin-top: 12px; }
.doc__foot a { color: #5B6A61; display: inline-block; padding: 8px 0; min-height: 44px; }
.doc__links { list-style: none; padding: 0; margin-top: 16px; }
.doc__links a { display: flex; align-items: center; }
.doc__links a:hover { color: #7D5E27; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
