.bws-main {
  background: #f7f9fc;
}

.bws-gos-page {
  background: radial-gradient(circle at top left, rgba(95, 159, 47, .08), transparent 34rem), linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
  min-height: calc(100vh - 90px);
  padding-top: 24px;
}

.bws-gos-panel,
.bws-catalog,
.bws-page-head,
.bws-article_item,
.bws-voters,
.bws-empty {
  border-color: #e6ebf2 !important;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.bws-gos-panel,
.bws-catalog,
.bws-page-head {
  border-radius: 24px;
}

.bws-page-head {
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e6ebf2;
  margin-bottom: 20px;
  padding: 24px 28px;
}

.bws-page-head .h1 {
  color: #101828;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.045em;
}

.bws-page-head_lead {
  color: #667085;
  max-width: 760px;
}

.bws-lk-breadcrumb {
  color: #667085;
}

.bws-lk-breadcrumb a {
  color: #528a28;
  font-weight: 700;
}

.bws-catalog {
  background: rgba(255, 255, 255, .96);
  padding: 22px;
}

.bws-catalog_top {
  gap: 18px;
}

.bws-catalog_stat {
  background: linear-gradient(135deg, #eff8e7 0%, #f7fff2 100%);
  border: 1px solid rgba(95, 159, 47, .14);
  border-radius: 18px;
  min-width: 180px;
}

.bws-catalog_stat strong {
  color: #4f8527;
}

.bws-catalog_search {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.bws-catalog_search input {
  color: #101828;
}

.bws-catalog_search button {
  background: #5f9f2f;
  border-radius: 12px;
  margin-right: 5px;
  min-height: 40px;
  transition: background .2s ease, transform .2s ease;
}

.bws-catalog_search button:hover {
  background: #528a28;
  transform: translateY(-1px);
}

.bws-catalog_label {
  color: #667085;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bws-catalog_tab,
.bws-catalog_card {
  background: #ffffff;
  border-radius: 16px;
  min-height: 58px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.bws-catalog_tab strong,
.bws-catalog_card strong {
  align-items: center;
  background: #eff8e7;
  border-radius: 999px;
  color: #4f8527;
  display: inline-flex;
  justify-content: center;
  min-height: 26px;
  min-width: 34px;
  padding: 3px 9px;
}

.bws-catalog_tab:hover,
.bws-catalog_card:hover {
  border-color: rgba(95, 159, 47, .42);
  box-shadow: 0 12px 28px rgba(95, 159, 47, .12);
  transform: translateY(-1px);
}

.bws-catalog_tab--active,
.bws-catalog_card--active {
  background: linear-gradient(135deg, #eff8e7 0%, #ffffff 100%);
  border-color: rgba(95, 159, 47, .58) !important;
  box-shadow: 0 12px 26px rgba(95, 159, 47, .13);
  color: #477724 !important;
}

.bws-article_item {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e6ebf2;
  border-radius: 24px;
  margin-bottom: 18px;
  padding: 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bws-article_item .h2 a {
  color: #101828;
  letter-spacing: -.03em;
  text-decoration: none;
}

.bws-article_item p {
  color: #344054;
  line-height: 1.7;
}

.bws-article_item:hover {
  border-color: rgba(95, 159, 47, .28) !important;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}

.bws-level,
.bws-category,
.bws-tags a {
  border-radius: 999px;
  text-decoration: none !important;
}

.bws-level,
.bws-category {
  background: #eff8e7;
  color: #4a7c25 !important;
  font-weight: 700;
  padding: 7px 12px;
}

.bws-counter {
  gap: 10px;
}

.bws-counter_item {
  background: #f9fbfd;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 10px 12px;
}

.bws-btn,
.adm-btn {
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.bws-btn:hover,
.adm-btn:hover {
  transform: translateY(-1px);
}

.bws-btn:not(.bws-btn--white):not(.bws-btn--light) {
  background: #5f9f2f !important;
  border-color: #5f9f2f !important;
  color: #ffffff !important;
}

.bws-btn:not(.bws-btn--white):not(.bws-btn--light):hover {
  background: #528a28 !important;
  border-color: #528a28 !important;
}

.bws-btn--white,
.bws-btn--light {
  background: #ffffff !important;
  border: 1px solid #e6ebf2 !important;
  color: #101828 !important;
}

.bws-btn--white:hover,
.bws-btn--light:hover {
  border-color: rgba(95, 159, 47, .36) !important;
  color: #4c8026 !important;
}

.bws-gov-form-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.bws-gov-form-intro {
  background: linear-gradient(135deg, #eff8e7 0%, #ffffff 100%);
  border: 1px solid rgba(95, 159, 47, .16);
  border-radius: 20px;
  margin-bottom: 22px;
  padding: 18px;
}

.bws-gov-compose-block,
.bws-main .adm-post_form-fieldset {
  background: #ffffff;
  border: 1px solid #e6ebf2 !important;
  border-radius: 18px;
  padding: 18px !important;
}

.bws-gov-compose-label {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bws-main .adm-post_form .adm-post_form-input,
.bws-main .adm-select,
.bws-input_price {
  border-color: #e6ebf2 !important;
  border-radius: 14px !important;
}

#js-editorjs {
  min-height: 220px;
}

.bws-gov-form-note {
  color: #667085;
  line-height: 1.55;
}

.bws-post-youtube {
  border-color: #e6ebf2 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06) !important;
}

.bws-empty {
  background: rgba(255, 255, 255, .72);
  border-radius: 20px;
  color: #667085;
}

@media (max-width: 768px) {
  .bws-gos-page {
    padding-top: 12px;
  }

  .bws-page-head,
  .bws-catalog,
  .bws-gos-panel,
  .bws-article_item {
    border-radius: 18px;
    padding: 18px;
  }

  .bws-catalog_tabs,
  .bws-catalog_grid {
    grid-template-columns: 1fr;
  }
}

.bws-page-turn-overlay {
  align-items: center;
  background: rgba(14, 18, 24, .24);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .16s ease;
  z-index: 5000;
}

.bws-page-turn-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bws-page-turn-sheet {
  background: linear-gradient(90deg, #f7f1e3 0%, #fffdf7 42%, #f0e4ce 100%);
  border: 1px solid rgba(202, 184, 147, .72);
  border-radius: 18px;
  box-shadow: 0 34px 86px rgba(0, 0, 0, .34);
  height: min(78vh, 720px);
  max-width: 900px;
  overflow: hidden;
  position: relative;
  transform: perspective(1500px) rotateY(0deg);
  transform-origin: left center;
  width: min(86vw, 900px);
}

.bws-page-turn-sheet::before {
  background: linear-gradient(90deg, rgba(70, 48, 20, .16), rgba(255, 255, 255, .18) 14%, rgba(255, 255, 255, 0) 34%);
  content: "";
  inset: 0;
  position: absolute;
}

.bws-page-turn-sheet::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(95, 72, 36, .2));
  content: "";
  inset: 0 0 0 50%;
  position: absolute;
}

.bws-page-turn-overlay.is-active .bws-page-turn-sheet {
  animation: bwsGlobalPageTurn .72s cubic-bezier(.25, .72, .26, 1) forwards;
}

@keyframes bwsGlobalPageTurn {
  0% {
    opacity: 1;
    transform: perspective(1500px) rotateY(0deg) translateX(0);
  }

  45% {
    opacity: 1;
    transform: perspective(1500px) rotateY(-48deg) translateX(-18px);
  }

  100% {
    opacity: .15;
    transform: perspective(1500px) rotateY(-88deg) translateX(-240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bws-page-turn-overlay,
  .bws-page-turn-overlay.is-active .bws-page-turn-sheet {
    animation: none;
    transition: none;
  }
}
