/* Рубрика «Контейнеры» (/containers/) — шаблон category-containers.php */
.ct, .ct-calc, .ct-seo {
  --ct-green: #30af21; --ct-green-dark: #1f7d14; --ct-green-soft: #eaf6e8; --ct-deep: #145422;
  --ct-orange: #ff7a00; --ct-text: #1d2a1f; --ct-muted: #6b776d; --ct-line: #e6ebe6;
}
body.category-containers .breadcrumbs { margin-bottom: 10px !important; }

/* первый экран */
.ct-hero { margin: 10px 0 30px; }
.ct-title { margin: 0 0 10px; font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--ct-text); }
.ct-lead { max-width: 760px; margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: #3f4c41; }
.ct-points { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ct-points li {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 12px 18px 12px 52px;
  border-radius: 14px; background: #f4f8f3; list-style: none;
}
.ct-points li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--ct-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.5 3.8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ct-points b { font-size: 15px; color: var(--ct-text); }
.ct-points span { font-size: 13px; color: var(--ct-muted); }

/* карточки */
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ct-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--ct-line); border-radius: 22px; background: #fff; overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 60, 25, .06); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ct-card:hover { box-shadow: 0 14px 36px rgba(20, 60, 25, .12); transform: translateY(-3px); }
.ct-card.is-popular { border: 2px solid var(--ct-green); }
.ct-card__badge {
  position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 10px; border-radius: 10px;
  background: var(--ct-orange); font-size: 12px; font-weight: 700; color: #fff; box-shadow: 0 4px 12px rgba(255, 122, 0, .35);
}
.ct-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f4f6f4; overflow: hidden; }
.ct-card__photo { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s; }
.ct-card:hover .ct-card__photo { transform: scale(1.04); }
.ct-card__vol {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: baseline; gap: 3px;
  padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .95);
  font-size: 26px; font-weight: 800; line-height: 1; color: var(--ct-green-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.ct-card__vol small { font-size: 14px; font-weight: 700; }
.ct-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 18px 20px; }
.ct-card__title { margin: 0 0 6px !important; font-size: 18px; line-height: 1.3; font-weight: 700; }
.ct-card__title a { color: var(--ct-text) !important; text-decoration: none !important; }
.ct-card__title a:hover { color: var(--ct-green-dark) !important; }
.ct-card__use { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--ct-muted); }
.ct-specs { margin: 0 0 16px !important; padding: 0 !important; list-style: none !important; }
.ct-specs li {
  display: flex; justify-content: space-between; gap: 10px; margin: 0 !important; padding: 8px 0 !important;
  border-top: 1px dashed #dfe6df; font-size: 14px; list-style: none !important;
}
.ct-specs li::before { display: none !important; }
.ct-specs span { color: var(--ct-muted); }
.ct-specs b { color: var(--ct-text); text-align: right; white-space: nowrap; }
.ct-card__price { margin: auto 0 14px; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ct-text); }
.ct-card__price small { font-size: 15px; font-weight: 600; color: var(--ct-muted); }
.ct-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ct-order {
  display: flex; align-items: center; justify-content: center; padding: 13px 12px; border-radius: 12px;
  background: var(--ct-orange); font-size: 15px; font-weight: 700; color: #fff !important; text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(255, 122, 0, .3); transition: background-color .15s;
}
.ct-order:hover { background: #ff8c1f; }
.ct-more {
  display: flex; align-items: center; padding: 13px 14px; border-radius: 12px; background: var(--ct-green-soft);
  font-size: 14px; font-weight: 700; color: var(--ct-green-dark) !important; text-decoration: none !important; transition: background-color .15s;
}
.ct-more:hover { background: #d9efd5; }
.ct-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ct-muted); }

/* как выбрать */
.ct-help { margin: 44px 0 10px; }
.ct-h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--ct-text); }
.ct-help__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ct-line); border-radius: 20px; overflow: hidden; background: #fff; }
.ct-help__item {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-left: 1px solid var(--ct-line);
  color: var(--ct-text) !important; text-decoration: none !important; transition: background-color .15s;
}
.ct-help__item:first-child { border-left: 0; }
.ct-help__item:hover { background: #f6faf5; }
.ct-help__vol { font-size: 22px; font-weight: 800; color: var(--ct-green-dark); }
.ct-help__text { font-size: 15px; line-height: 1.45; font-weight: 600; }
.ct-help__bags { font-size: 13px; color: var(--ct-muted); }
.ct-help__tip { margin: 14px 0 0; font-size: 15px; color: var(--ct-muted); }
.ct-help__tip a { font-weight: 700; color: var(--ct-green-dark) !important; text-decoration: none !important; white-space: nowrap; }

/* калькулятор и текст */
.ct-calc { margin-top: 40px; }
.ct-seo { margin: 40px auto 50px; font-size: 16px; line-height: 1.7; color: var(--ct-text); }
.ct-seo > * { max-width: 860px; }

/* адаптив */
@media (max-width: 1199px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-help__item:nth-child(odd) { border-left: 0; }
  .ct-help__item:nth-child(n+3) { border-top: 1px solid var(--ct-line); }
}
@media (max-width: 767px) {
  .ct-title { font-size: 30px; }
  .ct-lead { font-size: 16px; }
  .ct-points { flex-direction: column; }
  .ct-grid { grid-template-columns: 1fr; gap: 16px; }
  .ct-h2 { font-size: 23px; }
  .ct-help__grid { grid-template-columns: 1fr; }
  .ct-help__item { border-left: 0 !important; border-top: 1px solid var(--ct-line); }
  .ct-help__item:first-child { border-top: 0; }
}

/* шорткод [containers] внутри страниц: колонки подстраиваются под ширину блока */
.ct--embed { margin: 10px 0 30px; }
.ct--embed .ct-grid { grid-template-columns: repeat(var(--ct-cols, 4), minmax(0, 1fr)); }
/* одна-две карточки не растягиваем на всю ширину */
.ct--embed .ct-grid--1 { max-width: 380px; }
.ct--embed .ct-grid--2 { max-width: 780px; }
@media (max-width: 991px) { .ct--embed .ct-grid:not(.ct-grid--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* телефон — по одной карточке (селектор той же силы, что выше, и идёт после него) */
@media (max-width: 767px) { .ct--embed .ct-grid:not(.ct-grid--1) { grid-template-columns: 1fr; max-width: none; } .ct--embed .ct-grid--1 { max-width: none; } }
.ct--embed .ct-card__title { margin: 0 0 6px !important; font-size: 18px; line-height: 1.3; font-weight: 700; }
.ct--embed .ct-card__title::before, .ct--embed .ct-card__title::after { display: none !important; }

