/* Секция «готовые шаблоны» (карточка с номером, описание, кнопка) — общие стили, без привязки к slug. */

.bh-ready-templates {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.bh-ready-templates__inner {
  align-self: stretch;
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  box-sizing: border-box;
}

.bh-ready-templates__title-wrap {
  width: 100%;
  max-width: 1200px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.bh-ready-templates__title {
  flex: 1 1 0;
  margin: 0;
  text-align: center;
  color: #212121;
  font-size: 36px;
  font-family: "Ubuntu Sans", sans-serif;
  font-weight: 700;
  line-height: 40px;
  overflow-wrap: break-word;
}

.bh-ready-templates__grid {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-items: stretch;
  align-items: stretch;
}

.bh-ready-templates__card {
  width: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  height: 100%;
  padding: 30px;
  border-radius: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  background: #f8faff;
  align-self: stretch;
}

/* Вариант с бордёром #D3DAEC (как Figma outline) */
.bh-ready-templates__card--bordered {
  border: 1px solid #d3daec;
}

/* Светлая плитка по макету (вместо #f8faff по умолчанию) */
.bh-ready-templates__card--bg-white {
  background: #fff;
}

/* Номер: Figma 2349:828 — linear-gradient; модификатор --badge-conic — conic (blogerov) */
.bh-ready-templates__num-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #e6363e 0%, #f5464d 100%);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.bh-ready-templates__num-wrap--badge-conic {
  background: conic-gradient(
    from 280deg at 38.7% 41.71%,
    #ff4d4d 0deg,
    #ff9191 360deg
  );
}

.bh-ready-templates__num {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  line-height: 28px;
  overflow-wrap: break-word;
}

.bh-ready-templates__body {
  width: 100%;
  max-width: none;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
}

/* Совместимость: раньше использовался для тянущейся колонки — поведение в .bh-ready-templates__body */
.bh-ready-templates__body--tall {
  flex: 1 1 0;
  min-height: 0;
}

.bh-ready-templates__card-title {
  align-self: stretch;
  margin: 0 0 10px;
  color: #212121;
  font-size: 24px;
  font-family: "Ubuntu Sans", sans-serif;
  font-weight: 700;
  line-height: 28.8px;
  overflow-wrap: break-word;
}

.bh-ready-templates__card-title--w314 {
  max-width: 314px;
}

.bh-ready-templates__text {
  align-self: stretch;
  margin: 0 0 1rem;
  opacity: 0.8;
  color: #212121;
  font-size: 16px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  line-height: 23.2px;
  overflow-wrap: break-word;
}

.bh-ready-templates__btn {
  height: 56px;
  padding: 16px 32px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  border: 1px solid #ff4d4d;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ff4d4d;
  font-size: 16px;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  overflow-wrap: break-word;
  margin-top: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .bh-ready-templates {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bh-ready-templates__title-wrap {
    min-height: 0;
    height: auto;
  }

  .bh-ready-templates__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .bh-ready-templates__grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .bh-ready-templates__card {
    width: 100%;
    height: auto;
  }
}
