@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

@font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'TildaSans'; src: url('/fonts/TildaSans-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 20px calc(96px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #ffffff;
}

h1 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 34px;
  color: #8473EC;
  margin: 0 0 4px;
  line-height: 1.15;
}

.doc-subtitle {
  font-size: 13px;
  color: #8a8a8a;
  margin: 0 0 28px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 12px;
}

h3 {
  font-family: 'TildaSans', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  margin: 22px 0 8px;
}

p { margin: 0 0 12px; }
strong { font-weight: 600; }

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
li { margin-bottom: 6px; }

a { color: #8473EC; }

.doc-requisites {
  margin-top: 12px;
  padding: 16px;
  background: #F7F6FE;
  border-radius: 12px;
  font-size: 14px;
}
.doc-requisites p { margin: 0 0 4px; }

.doc-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #9a9a9a;
}

.doc-back-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #ffffff 60%, rgba(255,255,255,0));
}

.doc-back-button {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  height: 50px;
  border-radius: 7px;
  background-color: #8473EC;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  font-family: 'TildaSans', Arial, sans-serif !important;
  letter-spacing: -0.5px !important;
  border: none;
  cursor: pointer;
}
.doc-back-button:active { transform: scale(0.98); }
