/* Соглашения (Docs/Agreement*.html): бланк в стиле сайта — тёмная полоса с BALANSIR, лист на бумажном фоне.
   Тёплая тема; копии agreement-blue.css / agreement-green.css строит tools\scripts\Build-Themes.ps1,
   тему выбирает скрипт в самих страницах по cookie bz-theme (как SiteTheme) */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.agr{
  margin:0;
  background:#f3efe6;
  color:#12110f;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
}

/* полоса с названием */
.agr-top{background:#12110f;border-bottom:1px solid rgba(255,255,255,.13)}
.agr-top__in{width:min(1180px,calc(100% - 40px));margin:0 auto;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.agr-logo{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;letter-spacing:.12em;font-size:15px;text-decoration:none}
.agr-logo img{width:30px;height:30px;display:block}
.agr-print{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.13);background:transparent;color:#bdb6aa;cursor:pointer;transition:.2s ease}
.agr-print:hover{color:#e0c48a;border-color:#e0c48a}
.agr-print svg{width:18px;height:18px}

/* лист */
.agr-main{padding:44px 20px 64px}
.agr-sheet{
  position:relative;
  max-width:880px;margin:0 auto;
  background:#fffdf8;
  border:1px solid rgba(18,17,15,.12);
  border-radius:20px;
  box-shadow:0 24px 60px rgba(18,17,15,.12);
  padding:64px 76px 56px;
  overflow:hidden;
}
.agr-sheet::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#c4a36a,#e0c48a)}

/* шапка документа: название, подзаголовок, дата и версия */
.agr-sheet h1{
  margin:0;
  text-align:center;
  font-size:30px;font-weight:800;letter-spacing:.14em;
  color:#12110f;
}
.agr-sheet h1 + h2{
  margin:10px auto 0;max-width:620px;
  padding:0;border:0;
  text-align:center;
  font-size:14px;font-weight:700;letter-spacing:.08em;line-height:1.5;
  color:#8a6a2e;
}
.agr-sheet h1 + h2 + p{
  margin:22px 0 30px;padding-bottom:26px;
  border-bottom:1px solid rgba(18,17,15,.12);
  text-align:center;
  font-size:13px;letter-spacing:.04em;
  color:#8a8478;
}

/* разделы */
.agr-sheet h2{
  margin:34px 0 14px;padding-top:22px;
  border-top:1px solid rgba(18,17,15,.08);
  font-size:15px;font-weight:800;letter-spacing:.07em;line-height:1.4;
  color:#12110f;
}
.agr-sheet p{
  margin:0 0 11px;
  font-size:15.5px;line-height:1.7;
  color:#1c1b18;
  hyphens:auto;-webkit-hyphens:auto;
  overflow-wrap:break-word;
}
.agr-sheet strong{font-weight:700;color:#12110f}
.agr-sheet a{color:#8a6a2e}

/* под листом */
.agr-foot{max-width:880px;margin:22px auto 0;display:flex;align-items:center;justify-content:center;gap:8px;color:#8a8478;font-size:12px;letter-spacing:.12em;font-weight:700}
.agr-foot img{width:18px;height:18px;opacity:.7}

@media (max-width:720px){
  .agr-top__in{width:calc(100% - 32px)}
  .agr-main{padding:20px 12px 40px}
  .agr-sheet{padding:40px 22px 32px;border-radius:14px}
  .agr-sheet h1{font-size:24px}
  .agr-sheet h2{font-size:14px}
  .agr-sheet p{font-size:15px}
}

@page{size:A4;margin:2cm}
@media print{
  body.agr{background:#fff}
  .agr-top,.agr-foot{display:none}
  .agr-main{padding:0}
  .agr-sheet{max-width:none;border:0;border-radius:0;box-shadow:none;padding:0;background:#fff}
  .agr-sheet::before{display:none}
  .agr-sheet h2{page-break-after:avoid;break-after:avoid}
  .agr-sheet p{font-size:11pt;line-height:1.5}
}
