.bp-docs,
.bp-docs * {
  box-sizing: border-box;
}

.bp-docs {
  width: 100%;
  color: #151515;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.bp-docs__heading {
  margin: 0 0 4px;
  color: #111111;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.bp-docs__subtitle {
  margin: 0 0 18px;
  color: #ad3d1b;
  font-size: 17px;
}

.bp-docs__notice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid #eadfd9;
  border-radius: 6px;
  background: #fffaf8;
  color: #505050;
}

.bp-docs__info-icon {
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border: 2px solid #ab3b19;
  border-radius: 50%;
  color: #ab3b19;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.bp-docs__notice-text {
  max-width: 980px;
  margin: 0;
}

.bp-docs__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bp-docs__category {
  overflow: hidden;
  border: 1px solid #eadfd9;
  border-radius: 7px;
  background: #ffffff;
}

.bp-docs__category-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  border: 0;
  background: #fffaf8;
  color: #111111;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bp-docs__category-button:hover,
.bp-docs__category-button:focus {
  background: #fff5f1;
  outline: none;
}

.bp-docs__category-button:focus-visible {
  box-shadow: inset 0 0 0 2px #ad3d1b;
}

.bp-docs__category-left,
.bp-docs__category-meta {
  display: inline-flex;
  align-items: center;
}

.bp-docs__category-left {
  min-width: 0;
  gap: 20px;
}

.bp-docs__category-meta {
  flex: 0 0 auto;
  gap: 38px;
}

.bp-docs__category-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.bp-docs__category-count {
  white-space: nowrap;
  font-size: 16px;
}

.bp-docs__folder-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 38px;
  width: 38px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, #b84822 0%, #99300f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bp-docs__folder-icon::before {
  position: absolute;
  top: -3px;
  left: 3px;
  width: 16px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #a93816;
  content: "";
}

.bp-docs__folder-line {
  position: absolute;
  left: 11px;
  bottom: 7px;
  width: 17px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
}

.bp-docs__chevron {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
}

.bp-docs__category.is-open .bp-docs__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.bp-docs__category-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 18px;
  border-top: 1px solid #eadfd9;
}

.bp-docs__card {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) 168px;
  grid-template-rows: auto 1fr;
  gap: 18px 16px;
  min-height: 204px;
  padding: 18px 16px;
  border: 1px solid #eadfd9;
  border-radius: 6px;
  background: #ffffff;
}

.bp-docs__doc-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 49px;
  margin: 1px auto 0;
  border: 2px solid #9c9c9c;
  border-radius: 2px;
  background: #ffffff;
}

.bp-docs__doc-fold {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-left: 2px solid #9c9c9c;
  border-bottom: 2px solid #9c9c9c;
  background: #ffffff;
}

.bp-docs__doc-fold::before {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 19px;
  height: 2px;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.bp-docs__doc-badge {
  position: absolute;
  left: -3px;
  bottom: -2px;
  display: block;
  min-width: 37px;
  padding: 3px 3px 2px;
  border-radius: 2px;
  background: #f01818;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.bp-docs__titles {
  min-width: 0;
  align-self: start;
}

.bp-docs__title {
  overflow-wrap: anywhere;
}

.bp-docs__title--primary {
  margin: 0 0 2px;
  color: #111111;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.bp-docs__title--secondary {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.bp-docs__title--secondary-1 {
  color: #b2401e;
}

.bp-docs__title--secondary-2 {
  color: #535353;
}

.bp-docs__versions {
  grid-column: 1 / 3;
  align-self: end;
}

.bp-docs__version-label {
  margin: 0 0 8px;
  color: #444444;
  font-size: 14px;
}

.bp-docs__version-buttons {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #e3d9d4;
  border-radius: 5px;
  background: #ffffff;
}

.bp-docs__version-button {
  min-width: 54px;
  height: 40px;
  margin: 0;
  padding: 0 11px;
  border: 0;
  border-right: 1px solid #e3d9d4;
  background: #ffffff;
  color: #4e4e4e;
  font: inherit;
  font-size: 14px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

.bp-docs__version-button:first-child {
  border-radius: 4px 0 0 4px;
}

.bp-docs__version-button:last-child {
  border-right: 0;
  border-radius: 0 4px 4px 0;
}

.bp-docs__version-button:hover,
.bp-docs__version-button:focus {
  background: #fff3ee;
  outline: none;
}

.bp-docs__version-button.is-active {
  border-color: #a73b19;
  background: linear-gradient(180deg, #b94923 0%, #9e3211 100%);
  color: #ffffff;
}

.bp-docs__downloads {
  display: flex;
  grid-column: 3;
  grid-row: 1 / 3;
  flex-direction: column;
  align-self: center;
  gap: 14px;
}

.bp-docs__download {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid;
  border-radius: 5px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 120ms ease, color 120ms ease;
}

.bp-docs__download--pdf {
  border-color: #ed1919;
  color: #ed1919 !important;
}

.bp-docs__download--docx {
  border-color: #1f66ed;
  color: #1f66ed !important;
}

.bp-docs__download--pdf:hover,
.bp-docs__download--pdf:focus {
  background: #fff3f3;
}

.bp-docs__download--docx:hover,
.bp-docs__download--docx:focus {
  background: #f2f6ff;
}

.bp-docs__download:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.bp-docs__download-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 22px;
}

.bp-docs__download-icon::before {
  position: absolute;
  top: 0;
  left: 9px;
  width: 2px;
  height: 14px;
  background: currentColor;
  content: "";
}

.bp-docs__download-icon::after {
  position: absolute;
  top: 7px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.bp-docs__download-label::after {
  content: "";
}

@media (max-width: 1180px) {
  .bp-docs__category-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .bp-docs__heading {
    font-size: 28px;
  }

  .bp-docs__notice {
    gap: 14px;
    padding: 15px;
  }

  .bp-docs__category-button {
    align-items: flex-start;
    padding: 14px;
  }

  .bp-docs__category-left {
    gap: 12px;
  }

  .bp-docs__category-meta {
    gap: 16px;
  }

  .bp-docs__category-count {
    display: none;
  }

  .bp-docs__category-title {
    font-size: 18px;
  }

  .bp-docs__category-panel {
    padding: 12px;
  }

  .bp-docs__card {
    grid-template-columns: 45px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 16px 12px;
    min-height: 0;
    padding: 16px 14px;
  }

  .bp-docs__versions {
    grid-column: 1 / 3;
  }

  .bp-docs__downloads {
    display: grid;
    grid-column: 1 / 3;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bp-docs__version-buttons {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bp-docs__version-button {
    min-width: 0;
    padding: 0 5px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .bp-docs__downloads {
    grid-template-columns: 1fr;
  }

  .bp-docs__version-button {
    font-size: 12px;
  }
}
