/* Главная и /oplata-i-vychet/: новые блоки (префикс hb-). Цвета бренда: #922c88, #2e2560, #c938bb. */
:root {
  --hb-p: #922c88;
  --hb-pk: #c938bb;
  --hb-dk: #2e2560;
  --hb-lav: #f3effa;
  --hb-line: #ece4f6;
  --hb-muted: #6b6478;
}

.hb-btn {
  display: inline-block;
  background: var(--hb-p);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hb-btn:hover,
.hb-btn:focus-visible {
  background: #7a2272;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(135, 95, 221, 0.7);
}
.hb-btn--sm { padding: 10px 18px; font-size: 14px; }
.hb-btn--ghost {
  background: transparent;
  color: var(--hb-p) !important;
  box-shadow: inset 0 0 0 1.5px var(--hb-p);
}
.hb-btn--ghost:hover { background: var(--hb-lav); }
.hb-link {
  color: var(--hb-p);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.hb-link:hover { text-decoration: underline; }

.hb-sec { padding: 48px 0; }
.hb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.hb-head h2, .hb-founder h2, .hb-ask h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: var(--hb-dk);
  font-weight: 500;
}

/* ---------- hero ---------- */
.hb-hero { padding: 24px 0 8px; }
.hb-hero__box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  border-radius: 28px;
  padding: 56px;
  background: linear-gradient(115deg, #f6eefb 0%, #eadcf7 35%, #f9e9f6 65%, #efe6fb 100%);
  background-size: 240% 240%;
  animation: hb-grad 18s ease-in-out infinite;
}
@keyframes hb-grad {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hb-hero__title {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.1;
  color: var(--hb-dk);
}
.hb-hero__lead { margin: 0 0 26px; font-size: 18px; max-width: 520px; }
.hb-hero__lead a { color: var(--hb-p); }
.hb-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hb-hero__card {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 34px rgba(80, 50, 120, 0.14);
}
.hb-hero__card-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-pk);
  margin-bottom: 6px;
}
.hb-hero__card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; color: var(--hb-dk); }
.hb-hero__card p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.hb-hero__card-price { margin-bottom: 16px; }
.hb-hero__card-price b { font-size: 30px; color: var(--hb-p); font-weight: 600; }
.hb-hero__card-price small { font-size: 14px; color: var(--hb-muted); }

/* ---------- полоса цифр ---------- */
.hb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 28px rgba(80, 50, 120, 0.1);
  margin: -30px 28px 0;
  position: relative;
  z-index: 2;
}
.hb-stat {
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid #eee7f5;
  color: var(--hb-tx, #4a4a4a);
  text-decoration: none;
}
.hb-stat:last-child { border-right: 0; }
.hb-stat b { display: block; font-size: 36px; line-height: 1; color: var(--hb-p); font-weight: 600; }
.hb-stat b i { font-style: normal; font-size: 20px; color: var(--hb-pk); }
.hb-stat > span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; }
a.hb-stat:hover > span { text-decoration: underline; }

/* ---------- фильтр услуг ---------- */
.hb-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hb-chip {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--hb-lav);
  color: var(--hb-dk);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.hb-chip:hover { background: #e7def5; }
.hb-chip.is-on { background: var(--hb-p); color: #fff; }
.hb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 2px 14px rgba(80, 50, 120, 0.05);
}
.hb-card[hidden] { display: none; }
.hb-card--help { background: linear-gradient(160deg, #fbf3fb, #f1e9fb); border-color: transparent; justify-content: center; }
.hb-card--help p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.hb-card--help .hb-card__actions { flex-wrap: wrap; }
.hb-card h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; color: var(--hb-dk); }
.hb-card__meta { min-height: 20px; margin-bottom: 12px; font-size: 14px; color: var(--hb-muted); }
.hb-card__price { margin: auto 0 14px; font-size: 14px; color: var(--hb-muted); }
.hb-card__price b { font-size: 26px; font-weight: 600; color: var(--hb-p); }
.hb-card__ask { font-size: 15px; color: var(--hb-muted); }
.hb-card__actions { display: flex; gap: 14px; align-items: center; }

/* ---------- основатель ---------- */
.hb-founder-sec { padding-top: 24px; }
.hb-founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--hb-lav);
  border-radius: 28px;
  padding: 40px;
}
.hb-founder__photo { width: 300px; height: 360px; border-radius: 22px; object-fit: cover; object-position: top; }
.hb-founder__role { margin: 8px 0 14px; font-size: 17px; color: var(--hb-dk); }
.hb-tags { margin-bottom: 14px; }
.hb-tags span {
  display: inline-block;
  background: #fff;
  color: var(--hb-dk);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 8px 8px 0;
}
.hb-founder__text p { margin: 0 0 18px; font-size: 16px; line-height: 1.55; }

/* ---------- оплата ---------- */
.hb-pay__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hb-pay__card {
  display: block;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(160deg, #fbf3fb, #f1e9fb);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hb-pay__card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(80, 50, 120, 0.14); }
a.hb-pay__card,
a.hb-pay__card:hover,
a.hb-pay__card:focus,
a.hb-pay__card:hover .hb-link {
  text-decoration: none !important;
}
.hb-pay__card h3 { margin: 0 0 8px; font-size: 21px; color: var(--hb-dk); }
.hb-pay__card p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }

/* ---------- плашка рейтинга (блок отзывов) ---------- */
.hb-plate {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, #2e2560, #43307f);
  color: #fff !important;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(46, 37, 96, 0.25);
  text-decoration: none !important;
}
.hb-plate__ya { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.2; }
.hb-plate__ya i {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  font-style: normal;
  text-align: center;
}
.hb-plate { margin: 4px 0 18px; }
.hb-plate__ya em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85) !important; }
.hb-plate__ya b { display: block; font-size: 13px; color: #fff; }
.hb-plate__n { text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 16px; }
.hb-plate__n b { display: block; font-size: 22px; line-height: 1; font-weight: 600; color: #fff; }
.hb-plate__n b i { font-style: normal; font-size: 16px; color: #f5a623; }
.hb-plate__n > span { font-size: 10px; color: rgba(255, 255, 255, 0.75) !important; }

/* ---------- «Остались вопросы?» ---------- */
.hb-ask {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, #2e2560, #43307f);
  border-radius: 28px;
  padding: 48px;
  color: #fff;
}
.hb-ask h2 { color: #fff !important; margin-bottom: 8px; }
.hb-ask p { margin: 0; max-width: 420px; font-size: 17px; color: #e6defa !important; }
.hb-ask__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hb-ask .hb-btn { background: var(--hb-pk); }
.hb-ask .hb-btn:hover { background: #b02ba3; }
.hb-ask .hb-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.hb-ask .hb-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- страница /oplata-i-vychet/ ---------- */
.hb-page-hero { padding: 28px 0 0; }
.hb-page-hero__box {
  border-radius: 28px;
  padding: 48px 56px;
  background: linear-gradient(115deg, #f6eefb 0%, #eadcf7 50%, #f9e9f6 100%);
}
.hb-page-hero h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.12; color: var(--hb-dk); }
.hb-page-hero p { margin: 0; max-width: 640px; font-size: 18px; }
.hb-topic { padding: 36px 0 0; scroll-margin-top: 90px; }
.hb-topic__box {
  border: 1px solid var(--hb-line);
  border-radius: 22px;
  padding: 30px;
  background: #fff;
}
.hb-topic h2 { margin: 0 0 10px; font-size: 28px; color: var(--hb-dk); font-weight: 500; }
.hb-topic p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.hb-topic ul { margin: 0 0 14px; padding-left: 20px; }
.hb-topic li { margin-bottom: 6px; font-size: 16px; line-height: 1.55; }

/* ---------- мобильная версия ---------- */
@media (max-width: 960px) {
  .hb-hero__box { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .hb-cards, .hb-pay__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-founder { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .hb-founder__photo { width: 100%; max-width: 360px; height: 340px; }
  .hb-ask { flex-direction: column; align-items: flex-start; }
  .hb-ask__btns { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hb-sec { padding: 32px 0; }
  .hb-head { flex-direction: column; gap: 6px; }
  .hb-head h2, .hb-founder h2, .hb-ask h2 { font-size: 26px; }
  .hb-hero { padding-top: 12px; }
  .hb-hero__box { border-radius: 22px; padding: 28px 20px; }
  .hb-hero__title { font-size: 28px; }
  .hb-hero__lead { font-size: 16px; }
  .hb-stats { grid-template-columns: 1fr 1fr; margin: -20px 10px 0; }
  .hb-stat { padding: 16px 8px; border-bottom: 1px solid #eee7f5; }
  .hb-stat:nth-child(2n) { border-right: 0; }
  .hb-stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .hb-stat b { font-size: 28px; }
  .hb-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px 20px; padding: 0 15px 4px; scrollbar-width: none; }
  .hb-chips::-webkit-scrollbar { display: none; }
  .hb-cards, .hb-pay__grid { grid-template-columns: 1fr; }
  .hb-founder { padding: 20px; }
  .hb-ask { padding: 28px 20px; border-radius: 22px; }
  .hb-ask__btns .hb-btn { flex: 1 1 100%; }
  .hb-plate { gap: 10px; padding: 10px 12px; width: 100%; justify-content: space-between; margin-bottom: 14px; }
  .hb-plate__n { padding-left: 10px; }
  .hb-plate__n b { font-size: 18px; }
  .hb-page-hero__box { padding: 28px 20px; border-radius: 22px; }
  .hb-page-hero h1 { font-size: 28px; }
  .hb-topic__box { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-hero__box { animation: none; }
  .hb-pay__card,
  .hb-btn { transition: none; }
  .hb-btn:hover,
  .hb-btn:focus-visible { transform: none; box-shadow: none; }
}

/* ---------- Первый экран главной: название слева, запись справа ---------- */
html[data-design='new'] body.page-home .ps-home-hero { padding: 28px 0 36px; }
html[data-design='new'] body.page-home .ps-home-hero__box {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  background: #fff;
  border: 1px solid #ece4f6;
  border-radius: 28px;
  overflow: hidden;
}
html[data-design='new'] body.page-home .ps-home-hero__copy {
  padding: 36px 40px;
  display: flex;
  align-items: center;
}
html[data-design='new'] body.page-home .ps-home-hero__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  max-width: none;
  width: auto;
  font-weight: 700;
  line-height: 1.08;
}
html[data-design='new'] body.page-home .ps-home-hero__role {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.2;
  color: #2e2560;
}
html[data-design='new'] body.page-home .ps-home-hero__where {
  margin-top: 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: #922c88;
}
html[data-design='new'] body.page-home .ps-home-hero__side {
  padding: 32px 28px;
  background: #f6f1fb;
  border-left: 1px solid #ece4f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
html[data-design='new'] body.page-home .ps-home-hero__lead {
  margin: 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.5;
  color: #3d355f;
}
html[data-design='new'] body.page-home .ps-home-hero__lead a { color: #922c88; }
html[data-design='new'] body.page-home .ps-home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html[data-design='new'] body.page-home .ps-home-hero__actions .btn {
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 860px) {
  html[data-design='new'] body.page-home .ps-home-hero { padding: 20px 0 24px; }
  html[data-design='new'] body.page-home .ps-home-hero__box { grid-template-columns: 1fr; }
  html[data-design='new'] body.page-home .ps-home-hero__copy { padding: 24px 20px 8px; }
  html[data-design='new'] body.page-home .ps-home-hero__side {
    border-left: 0;
    border-top: 1px solid #ece4f6;
    padding: 20px;
  }
  html[data-design='new'] body.page-home .ps-home-hero__actions .btn { width: 100%; }
}
