#docsPublicFiles{
  margin-top:20px;
}

#docsPublicFiles .container,
#docsInfoBlock .container{
  max-width:1180px;
}

.docs-file-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}

.docs-file-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:#fff;
  padding:18px 18px 20px;
  box-shadow:0 10px 28px rgba(2,6,23,.06);
  overflow:hidden;
}

.docs-file-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.docs-file-card-head h3{
  margin:0;
  font-size:18px;
  line-height:1.28;
  overflow-wrap:anywhere;
  word-break:normal;
}

.docs-file-card p{
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:#334155;
  overflow-wrap:anywhere;
}

.docs-file-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
}

.docs-file-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.docs-public-preview{
  margin-top:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(2,6,23,.06);
}

.docs-public-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid rgba(15,23,42,.08);
  flex-wrap:wrap;
}

.docs-public-preview-head b{
  display:block;
  font-size:18px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.docs-public-preview-head .small{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.5;
  color:#64748b;
  overflow-wrap:anywhere;
}

.docs-public-preview-body{
  min-height:560px;
  background:#f8fafc;
  padding:18px;
}

.docs-public-preview-body iframe{
  width:100%;
  min-height:76vh;
  border:0;
  background:#fff;
  border-radius:14px;
}

.docs-file-fallback{
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
  padding:20px;
}

.docs-file-fallback b{
  display:block;
  font-size:18px;
  line-height:1.35;
}

.docs-file-mobile-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.docxview{
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
  padding:20px 22px;
  line-height:1.55;
  color:#17212a;
  overflow:auto;
  max-height:920px;
}

.docxview h1,.docxview h2,.docxview h3,.docxview h4,.docxview h5,.docxview h6{
  margin:0 0 14px;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.docxview p{
  margin:0 0 12px;
  overflow-wrap:anywhere;
}

.docxview table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0 16px;
}

.docxview td,.docxview th{
  border:1px solid #dbe2ea;
  padding:7px 9px;
  vertical-align:top;
}

.docxview img{
  max-width:100%;
  height:auto;
}

#docsInfoBlock{
  margin-top:18px;
}

#docsInfoBlock .card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(2,6,23,.06);
}

#docsInfoBlock .card p{
  margin:0;
  font-size:16px;
  line-height:1.7;
}

#docsInfoBlock .listClean,
#docsInfoBlock ul.listClean{
  list-style:none !important;
  padding-left:0 !important;
  margin:18px 0 0 !important;
}

#docsInfoBlock .listClean li,
#docsInfoBlock ul.listClean li{
  list-style:none !important;
  position:relative;
  padding-left:28px;
  margin:0 0 12px;
  font-size:16px;
  line-height:1.65;
}

#docsInfoBlock .listClean li::before,
#docsInfoBlock ul.listClean li::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#2f80ff;
  box-shadow:0 0 0 4px rgba(47,128,255,.12);
}

/* FAQ: крупнее и свободнее */
.faqGrid{
  display:grid;
  gap:14px;
}

.faqGrid > *{
  border-radius:18px;
  overflow:hidden;
}

.faqGrid summary{
  padding:22px 24px !important;
  font-size:18px !important;
  line-height:1.45 !important;
  font-weight:600;
  min-height:auto !important;
}

.faqGrid details[open] > *:not(summary){
  padding-left:24px !important;
  padding-right:24px !important;
  padding-bottom:22px !important;
}

.faqGrid p,
.faqGrid .p,
.faqGrid .small{
  font-size:16px !important;
  line-height:1.7 !important;
  margin-top:0 !important;
}

/* мобильная версия */
@media (max-width: 1100px){
  .docs-file-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  #docsPublicFiles{
    margin-top:16px;
  }

  .docs-file-card{
    padding:16px;
    border-radius:18px;
  }

  .docs-file-card-head h3{
    font-size:17px;
  }

  .docs-file-card p{
    font-size:15px;
  }

  .docs-public-preview{
    margin-top:20px;
    border-radius:18px;
  }

  .docs-public-preview-head{
    padding:16px;
  }

  .docs-public-preview-body{
    min-height:auto;
    padding:14px;
  }

  .docs-public-preview-body iframe{
    min-height:68vh;
  }

  .docxview{
    padding:16px;
    max-height:none;
  }

  .faqGrid summary{
    padding:18px 18px !important;
    font-size:17px !important;
  }

  .faqGrid details[open] > *:not(summary){
    padding-left:18px !important;
    padding-right:18px !important;
    padding-bottom:18px !important;
  }

  .faqGrid p,
  .faqGrid .p,
  .faqGrid .small,
  #docsInfoBlock .card p,
  #docsInfoBlock .listClean li{
    font-size:15px !important;
    line-height:1.65 !important;
  }
}

.docs-public-shell{
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 30px rgba(2,6,23,.06);
  padding:28px !important;
}

.docs-public-head{
  margin-bottom:22px;
}

.docs-public-head h2{
  margin:0 0 14px;
  font-size:24px;
  line-height:1.2;
}

.docs-public-head p{
  margin:0;
  max-width:980px;
  font-size:16px;
  line-height:1.7;
  color:#334155;
}

#docsPublicFiles .docs-file-grid{
  margin-top:0;
}

#docsPublicFiles .docs-public-preview{
  margin-top:24px;
}

@media (max-width: 760px){
  .docs-public-shell{
    padding:18px !important;
    border-radius:18px;
  }

  .docs-public-head{
    margin-bottom:18px;
  }

  .docs-public-head h2{
    font-size:22px;
    margin-bottom:10px;
  }

  .docs-public-head p{
    font-size:15px;
    line-height:1.65;
  }
}


.docs-file-badge{display:none !important;}
