/* ============================================================
   Каталог (страница категории с фильтром) — ts-дизайн
   catalog/category-child-page.html. Всё под .cts.
   Значения сняты с эталона (flowermarket-product-cart.replit.app/catalog/birthday, Tailwind):
   sm 640 · md 768 · lg 1024 · xl 1280.
   ============================================================ */
.cts {
  --ink: #332e2a; --ink-h: #302a26; --text: #746b64; --muted: #8b8179; --link: #625b54;
  --green: #4f6e5c; --green-d: #405a49; --sale: #c9584a;
  --line: #eee5df; --line2: #e8ddd6; --field: #fffdfb; --field-b: #e9ded7;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Lato', sans-serif;
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  padding: 0 0 64px;
}
.cts *, .cts *::before, .cts *::after { box-sizing: border-box; }
.cts a { text-decoration: none; }
.cts button { font-family: inherit; }
.cts svg { display: block; flex: none; }
/* глобальные стили сайта (custom-styles.css, style.css) красят p/h* — сбрасываем внутри .cts */
.cts p, .cts h1, .cts h2, .cts h3 { margin: 0; padding: 0; text-align: left; text-transform: none; letter-spacing: normal; }
.cts h1, .cts h2, .cts h3 { margin-left: 0 !important; padding-bottom: 0 !important; }

/* фон страницы — как у эталона */
body.cts-page main { background: #fcf8f5 !important; }
body.cts-page .content-block { max-width: none; }

/* ---------- хлебные крошки (штатная разметка seo/tags/breadcrumbs.html) ---------- */
body.cts-page .page-head { margin: 0 0 20px !important; padding: 20px 0 0 !important; }
@media (min-width: 640px) { body.cts-page .page-head { padding-top: 32px !important; } }
body.cts-page .breadcrumbs {
  display: flex !important; flex-wrap: nowrap; align-items: center; gap: 6px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  margin: 0 !important; padding: 0 !important;
  font: 400 12px/16px 'Inter', 'Lato', sans-serif !important; color: #5e6f60 !important;
}
body.cts-page .breadcrumbs::-webkit-scrollbar { display: none; }
body.cts-page .breadcrumbs > * { flex: none; }
body.cts-page .breadcrumbs span, body.cts-page .breadcrumbs a {
  margin: 0 !important; padding: 0 !important; font: inherit !important; color: #8b8179 !important;
}
body.cts-page .breadcrumbs a:hover { color: #4f6e5c !important; }
body.cts-page .breadcrumbs a::before, body.cts-page .breadcrumbs a::after { display: none !important; }
body.cts-page .breadcrumbs__sep { width: 12px !important; height: 12px !important; margin: 0 !important; color: #8b8179; fill: currentColor; opacity: .8; }

/* ---------- заголовок ---------- */
.cts__head { margin: 0 0 20px; }
.cts .cts__title {
  max-width: 760px; margin: 0 !important;
  font-family: var(--serif) !important; font-weight: 500 !important;
  font-size: 32px !important; line-height: 1.12 !important; color: var(--ink-h) !important;
}
.cts .cts__lead { max-width: 580px; margin: 12px 0 0; }
.cts .cts__lead, .cts .cts__lead p { font-size: 14px !important; line-height: 1.625 !important; color: #786f68 !important; margin: 0; }
.cts .cts__lead { margin-top: 12px; }
.cts .price-buckets { margin: 28px 0 0; padding: 0; }
@media (min-width: 640px) {
  .cts .cts__title { font-size: 42px !important; }
  .cts .price-buckets { margin-top: 36px; }
}

/* быстрые «бюджет»-фильтры (штатная разметка render_price_buckets) */
.cts .price-buckets__title { display: none; }
.cts .price-buckets__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cts .price-buckets__item { margin: 0; padding: 0; list-style: none; }
.cts .price-buckets__item::before { display: none; }
.cts .price-buckets__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line2); border-radius: 999px; background: #fff;
  font: 400 12px/16px var(--sans); color: var(--link) !important; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.cts .price-buckets__btn:hover { border-color: #b5c0b0; background: #f7f8f4; }
.cts .price-buckets__btn--active, .cts .price-buckets__btn--active:hover { border-color: var(--green); background: var(--green); color: #fff !important; }
.cts .price-buckets__remove { font-size: 14px; line-height: 1; }

/* ---------- панель «найдено / сортировка» ---------- */
.cts-bar {
  display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 30px -26px rgba(69, 51, 40, .32);
}
.cts-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cts .cts-bar__count { font-size: 14px !important; line-height: 20px !important; color: var(--text) !important; }
.cts .cts-bar__count b { font-weight: 600; color: var(--ink); }
.cts-bar__filters {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line2); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 12px/16px var(--sans); color: #514a44; transition: background .15s;
}
.cts-bar__filters:hover { background: #f9f4f0; }
.cts-bar__filters svg { width: 14px; height: 14px; }
.cts-bar__dot { position: absolute; top: 3px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sale); }
.cts-bar__sort { display: flex; align-items: center; gap: 8px; margin: 0; font: 400 12px/16px var(--sans); color: #867d75; cursor: default; }
.cts-select { position: relative; display: inline-block; }
.cts .cts-select select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  height: 40px; min-width: 190px; margin: 0; padding: 0 36px 0 14px;
  border: 1px solid var(--line2); border-radius: 12px; background: var(--field); box-shadow: none; outline: none;
  font: 500 14px/20px var(--sans); color: #403a35; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cts .cts-select select:focus { border-color: #718875; box-shadow: 0 0 0 2px rgba(113, 136, 117, .15); }
.cts-select svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #8b8179; pointer-events: none; }
@media (min-width: 640px) {
  .cts-bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; }
  .cts-bar__sort { margin-left: auto; }
}
@media (min-width: 1024px) { .cts-bar__filters { display: none; } }

/* ---------- раскладка ---------- */
.cts__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  .cts__layout { grid-template-columns: 228px minmax(0, 1fr); gap: 28px; }
  .cts__layout--nosb { grid-template-columns: minmax(0, 1fr); }
}
.cts__main { min-width: 0; }
.cts__side-col { min-width: 0; }
@media (max-width: 1023px) { .cts__side-col { display: contents; } }
.cts-overlay { display: none; }

/* ---------- левая колонка (десктоп) ---------- */
.cts-side {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  box-shadow: 0 10px 35px -30px rgba(69, 51, 40, .35);
}
.cts .cts-side__title { font-family: var(--serif) !important; font-weight: 500 !important; font-size: 20px !important; line-height: 28px !important; color: var(--ink) !important; }
.cts-side__sheet-head, .cts-side__show { display: none; }

.cts-cats-nav { margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid #eee3dd; }
.cts-cats-nav .cts-side__title { margin-bottom: 12px; }
.cts-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cts-cats li { margin: 0; padding: 0; list-style: none; }
.cts-cats li::before { display: none; }
.cts .cts-cats__link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px;
  border-radius: 12px; font: 400 13px/1.375 var(--sans); color: var(--link) !important; transition: background .15s, color .15s;
}
.cts .cts-cats__link:hover { background: #faf5f1; color: var(--green) !important; }
.cts .cts-cats__link.is-active { background: #edf3ed; color: var(--green) !important; font-weight: 600; box-shadow: inset 0 0 0 1px #dce7dc; }
.cts-cats__link svg { width: 16px; height: 16px; }

.cts-filter__head { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--ink); }
.cts-filter__head svg { width: 16px; height: 16px; color: var(--green); }
.cts-filter__groups > * + * { margin-top: 24px; }
.cts-filter__group { padding: 0 0 24px; border-bottom: 1px solid #eee3dd; }
.cts-filter__legend { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.cts .cts-filter__legend h3, .cts .cts-filter__h3, .cts .cts-filter__prop h3 { font: 600 14px/20px var(--sans) !important; color: var(--ink) !important; }
.cts .cts-filter__h3 { margin-bottom: 12px; }
.cts .cts-filter__reset {
  font: 400 12px/16px var(--sans); color: #837970 !important;
  text-decoration: underline !important; text-decoration-color: #d8cbc2 !important; text-underline-offset: 4px;
}
.cts .cts-filter__reset:hover { color: var(--green) !important; }
.cts-filter__range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cts-field { display: block; min-width: 0; margin: 0; }
.cts-field span { display: block; margin: 0 0 6px; font: 400 11px/16.5px var(--sans); color: var(--muted); }
.cts .cts-field input {
  width: 100%; height: 40px; margin: 0; padding: 0 12px;
  border: 1px solid var(--field-b); border-radius: 12px; background: var(--field); box-shadow: none; outline: none;
  font: 400 14px/20px var(--sans); color: #342f2b; -moz-appearance: textfield; transition: border-color .15s, box-shadow .15s;
}
.cts .cts-field input::-webkit-outer-spin-button, .cts .cts-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cts .cts-field input:focus { border-color: #718875; box-shadow: 0 0 0 2px rgba(113, 136, 117, .15); }
.cts-filter__prop { margin-top: 16px; font-size: 13px; color: var(--link); }
.cts-filter__prop h3 { margin-bottom: 10px !important; }
.cts-filter__prop ul { list-style: none; margin: 0; padding: 0; }
.cts-filter__prop label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; cursor: pointer; }
.cts-filter__prop select { width: 100%; height: 40px; border: 1px solid var(--field-b); border-radius: 12px; padding: 0 12px; background: var(--field); }

.cts-filter__actions { display: grid; gap: 8px; margin-top: 16px; }
.cts .cts-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 400 14px/20px var(--sans); text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.cts .cts-btn--primary { background: var(--green); color: #fff !important; font-weight: 500; border: 0; }
.cts .cts-btn--primary:hover { background: var(--green-d); }
.cts .cts-btn--ghost { background: transparent; border-color: var(--field-b); color: var(--link) !important; }
.cts .cts-btn--ghost:hover { background: #faf4f0; }

.cts-check { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font: 400 14px/20px var(--sans); color: var(--link); }
.cts .cts-check input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--green); position: static; opacity: 1; -webkit-appearance: auto; appearance: auto; }

.cts-note { border-radius: 16px; background: #f8f2ed; padding: 16px; }
.cts .cts-note p { margin: 0; }
.cts .cts-note__title, .cts .cts-note p:first-child { font: 500 16px/24px var(--serif) !important; color: #4b554a !important; }
.cts .cts-note__text, .cts .cts-note p + p { margin-top: 4px !important; font: 400 12px/1.625 var(--sans) !important; color: #766d65 !important; }

.cts__side-col .sidebar-banners, .cts__side-col .banner { margin-top: 16px; }

/* ---------- мобильный фильтр: шторка снизу (< 1024) ---------- */
@media (max-width: 1023px) {
  .cts-side {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001;
    max-height: 88vh; max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 20px 28px; border: 0; border-radius: 28px 28px 0 0; background: #fcf8f5;
    box-shadow: 0 -18px 60px -20px rgba(43, 38, 34, .35);
    transform: translateY(104%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
  }
  .cts-side.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .cts-side__sheet-head { display: block; }
  .cts-side__handle { display: block; width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 999px; background: #d8cdc5; }
  .cts-side__sheet-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; }
  .cts .cts-side__eyebrow { font: 600 10px/15px var(--sans) !important; letter-spacing: .15em !important; text-transform: uppercase !important; color: #82907e !important; }
  .cts .cts-side__sheet-title { margin-top: 4px; font: 500 24px/32px var(--serif) !important; color: var(--ink) !important; }
  .cts-side__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--link); cursor: pointer; }
  .cts-side__close svg { width: 16px; height: 16px; }
  .cts-cats-nav, .cts-filter__head, .cts-filter__clear { display: none; }
  .cts-filter__group { border-bottom: 0; padding-bottom: 0; }
  .cts .cts-side__show {
    display: block; width: 100%; margin-top: 28px; padding: 14px 20px; border: 0; border-radius: 999px;
    background: var(--green); color: #fff; font: 600 14px/20px var(--sans); cursor: pointer;
  }
  .cts .cts-side__show:hover { background: var(--green-d); }
  .cts-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(43, 38, 34, .45); }
  .cts-overlay:not([hidden]) { display: block; }
  body.cts-lock { overflow: hidden; }
}

/* ---------- сетка карточек ---------- */
.cts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 640px)  { .cts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1280px) { .cts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cts-card { position: relative; min-width: 0; }
.cts-card__media {
  position: relative; aspect-ratio: .79; overflow: hidden; border-radius: 20px; background: #f1e8e2;
  box-shadow: 0 12px 32px -25px rgba(57, 44, 35, .5);
}
.cts-card__photo { position: absolute; inset: 0; display: block; }
.cts-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cts-card:hover .cts-card__photo img { transform: scale(1.035); }

.cts .cts-badge {
  position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px;
  font: 600 9px/13.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff !important; white-space: nowrap;
}
.cts .cts-badge--hit { background: var(--sale); }
.cts .cts-badge--new { background: var(--green); }
.cts .cts-badge--stock { background: #a07868; }
.cts-card__badges-right {
  position: absolute; right: 10px; top: 10px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 4px; max-width: 105px;
}
.cts .cts-pill {
  padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font: 500 9px/13.5px var(--sans); color: var(--link) !important; white-space: nowrap;
}
.cts .cts-pill--dark { background: var(--ink); color: #fff !important; font-weight: 600; }

.cts-card__fav {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .9); color: #655b53;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .15s;
}
.cts-card__fav:hover { background: #fff; }
.cts-card__fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cts-card__fav.is-active { color: var(--sale); }
.cts-card__fav.is-active svg { fill: currentColor; }

.cts-card__body { padding: 12px 2px 0; }
.cts-card__meta { display: flex; align-items: center; gap: 6px; min-height: 15px; margin: 0 0 6px; font: 400 10px/15px var(--sans); color: #80776f; }
.cts-card__star { color: #b17b4d; }
.cts-card__dot { color: #c0b6ae; }
.cts-card__order { margin-left: auto; color: #a07868; white-space: nowrap; }
.cts .cts-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
  font: 400 13px/1.45 var(--sans); color: #39332e !important; transition: color .15s;
}
.cts .cts-card__name:hover { color: var(--green) !important; }
.cts .cts-card__sub { margin-top: 4px; font: 400 11px/16.5px var(--sans) !important; color: #968c83 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16.5px; }
.cts-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cts-card__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
.cts .cts-price { font: 500 17px/1 var(--serif); color: var(--ink) !important; white-space: nowrap; }
.cts .cts-price--sale { color: var(--sale) !important; }
.cts .cts-price__old { font: 400 10px/15px var(--sans); color: #a79c92 !important; text-decoration: line-through; white-space: nowrap; }
.cts .cts-card__cart {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: var(--green); color: #fff !important; box-shadow: none; transition: background .15s;
}
.cts .cts-card__cart:hover { background: var(--green-d); }
.cts .cts-card__cart svg { width: 16px; height: 16px; }
.cts .cts-card__cart--off { background: #eee8e3; color: #a59b92 !important; }
.cts .cts-card__cart--off:hover { background: #e6dfd9; }
.cts .cts-card__ask { flex: none; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 999px; font: 500 12px/16px var(--sans); color: var(--green) !important; white-space: nowrap; }
@media (min-width: 640px) {
  .cts-card__media { border-radius: 24px; }
  .cts .cts-badge { left: 14px; top: 14px; font-size: 10px; line-height: 15px; }
  .cts-card__badges-right { right: 14px; top: 14px; flex-wrap: nowrap; gap: 6px; max-width: none; }
  .cts .cts-pill { font-size: 10px; line-height: 15px; }
  .cts-card__fav { right: 12px; bottom: 12px; }
  .cts .cts-card__name { font-size: 14px; }
  .cts .cts-price { font-size: 18px; }
}

/* пустой результат */
.cts-empty { padding: 36px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--link); }
.cts .cts-empty__txt { margin: 0 0 16px; text-align: center; }
.cts-empty .cts-btn { width: auto; }

/* ---------- пагинация (штатная разметка include/pagination.html) ---------- */
.cts .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; }
.cts .pagination > span { margin: 0; }
.cts .pagination a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--link); font-size: 14px; transition: border-color .15s, color .15s;
}
.cts .pagination a:hover { border-color: var(--green); color: var(--green); }
.cts .pagination .active a { background: var(--green); border-color: var(--green); color: #fff; }
.cts .pagination .dot { color: var(--muted); }

/* ---------- «Не нашли свой букет?» ---------- */
.cts-help { margin-top: 48px; padding: 28px 24px; border-radius: 24px; background: #f1eee7; }
.cts .cts-help__eyebrow { display: block; font: 600 10px/15px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #788571; }
.cts .cts-help__title { margin-top: 4px; font: 500 24px/32px var(--serif) !important; color: #38332e !important; }
.cts .cts-help__txt p { margin-top: 4px; font: 400 14px/20px var(--sans) !important; color: var(--text) !important; }
.cts .cts-help__btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 20px; border-radius: 999px;
  background: #fff; font: 500 14px/20px var(--sans); color: var(--green) !important; transition: background .15s;
}
.cts .cts-help__btn:hover { background: #f8f4ef; }
.cts-help__btn svg { width: 16px; height: 16px; }
@media (min-width: 640px) {
  .cts-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 36px; }
  .cts .cts-help__btn { margin-top: 0; flex: none; }
}

/* ---------- SEO-текст ---------- */
.cts-seo {
  margin-top: 32px; padding: 28px 20px; border-radius: 26px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 12px 40px -35px rgba(69, 51, 40, .4);
}
.cts-seo__body { max-width: 1024px; }
.cts .cts-seo__body h1, .cts .cts-seo__body h2 {
  font: 500 26px/1.25 var(--serif) !important; color: var(--ink-h) !important; margin: 0 !important;
}
.cts .cts-seo__body h3 { font: 500 20px/1.25 var(--serif) !important; color: var(--ink-h) !important; margin: 0 !important; }
.cts .cts-seo__body p, .cts .cts-seo__body li { margin: 12px 0 0 !important; font: 400 14px/1.625 var(--sans) !important; color: var(--text) !important; }
.cts .cts-seo__body ul, .cts .cts-seo__body ol { margin: 12px 0 0 1.2em; padding: 0; }
.cts .cts-seo__body a { color: var(--green) !important; text-decoration: underline; }
.cts-seo__body img { max-width: 100%; height: auto; }
/* блок «О цветочной студии» внутри seo_text: .row > .about-img + .about-txt */
.cts .cts-seo__body .row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 32px 0 0; padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.cts .cts-seo__body .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0; float: none; }
.cts .cts-seo__body .about-img { width: 100%; max-width: 300px; margin: 0 auto; }
.cts .cts-seo__body .about-img img { display: block; width: 100%; height: auto; }
.cts .cts-seo__body .about-txt h2, .cts .cts-seo__body .about-txt h3 { font-size: 26px !important; }
.cts .cts-seo__body .about-txt h2 + p, .cts .cts-seo__body .about-txt h3 + p { margin-top: 16px !important; }
/* пустой абзац-распорка (&nbsp;) перед блоком «О студии» */
.cts .cts-seo__body p:has(+ .row) { display: none; }
@media (min-width: 640px) {
  .cts-seo { margin-top: 48px; padding: 40px; border-radius: 30px; }
  .cts .cts-seo__body h1, .cts .cts-seo__body h2 { font-size: 32px !important; }
  .cts .cts-seo__body .row { gap: 36px; margin-top: 40px; padding-top: 36px; }
  .cts .cts-seo__body .about-txt h2, .cts .cts-seo__body .about-txt h3 { font-size: 30px !important; }
}
@media (min-width: 768px) {
  .cts .cts-seo__body .row { grid-template-columns: minmax(220px, .8fr) 1.2fr; align-items: center; }
}

/* «Вы смотрели» и пр. штатные блоки под каталогом */
.cts .recently-watched, .cts > .section { margin-top: 36px; }

/* штатные стили сайта перебивают: .text-page (отступы), button (шрифт), span (цвет) */
.cts .cts-seo__body.text-page { margin: 0 !important; padding: 0 !important; max-width: 1024px !important; width: auto !important; background: none !important; }
.cts .cts-help__eyebrow { color: #788571 !important; }
.cts .cts-btn, .cts .cts-side__show { font-size: 14px !important; line-height: 20px !important; }
.cts .cts-btn--primary { font-weight: 500 !important; }
.cts .cts-btn--ghost { font-weight: 400 !important; }
.cts .cts-side__show { font-weight: 600 !important; }
.cts .cts-seo__body.text-page { max-width: none !important; }
.cts .cts-seo__body > h1, .cts .cts-seo__body > h2, .cts .cts-seo__body > h3, .cts .cts-seo__body > p, .cts .cts-seo__body > ul, .cts .cts-seo__body > ol { max-width: 1024px; }
.cts .cts-seo__body .row > [class*="col-"] { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
.cts .cts-seo__body .row > .about-img { width: 100% !important; max-width: 300px !important; margin: 0 auto !important; }
.cts .cts-seo__body .row > .about-txt > :last-child { margin-bottom: 0 !important; }
.cts .cts-seo__body .row { margin-left: 0 !important; margin-right: 0 !important; }
.cts .cts-bar__filters { font-size: 12px !important; line-height: 16px !important; font-weight: 500 !important; color: #514a44 !important; }
.cts .cts-bar__sort, .cts .cts-bar__sort > span:first-child { font-size: 12px !important; line-height: 16px !important; color: #867d75 !important; font-weight: 400 !important; }
.cts .cts-field span { color: #8b8179 !important; font-size: 11px !important; line-height: 16.5px !important; }
.cts .cts-check span { color: #625b54 !important; font-size: 14px !important; }
@media (max-width: 1023px) {
  .cts .cts-filter__clear { display: none !important; }
  .cts-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); background: rgba(43, 38, 34, .35); }
}

/* пагинация: стили сайта красят цифры (синий, белый при наведении) — фиксируем */
.cts .pagination a, .cts .pagination a:visited { color: #625b54 !important; background-color: #fff !important; border-color: #e8ddd6 !important; }
.cts .pagination a:hover, .cts .pagination a:focus-visible { color: #4f6e5c !important; background-color: #f7f8f4 !important; border-color: #4f6e5c !important; }
.cts .pagination .active a, .cts .pagination .active a:hover { color: #fff !important; background-color: #4f6e5c !important; border-color: #4f6e5c !important; }
/* обёртка <span> у номеров страниц — у сайта свой кружок 30×30, из-за него кольца дублировались */
.cts .pagination > span { width: auto !important; height: auto !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.cts .pagination > span::before, .cts .pagination > span::after { display: none !important; }
.cts .pagination .prev, .cts .pagination .next { margin: 0 !important; }
.cts .pagination > span { display: inline-flex !important; position: static !important; }
.cts .pagination a { position: static !important; transform: none !important; inset: auto !important; }
.cts .pagination a::before, .cts .pagination a::after { display: none !important; }
/* стрелки «назад/вперёд» */
.cts .pagination a.prev::before, .cts .pagination a.next::before {
  display: block !important; content: '' !important; position: static !important; width: 8px !important; height: 8px !important;
  border: solid currentColor !important; border-width: 0 0 1.6px 1.6px !important; background: none !important;
}
.cts .pagination a.prev::before { transform: translateX(2px) rotate(45deg) !important; }
.cts .pagination a.next::before { transform: translateX(-2px) rotate(-135deg) !important; }
