/* Блоки конструктора страниц, новости (в стиле сайта ХозМир) */
.cms-off { display: none !important; }
.page-cms .info-article { max-width: none; }
.cms-body { display: grid; gap: 28px; }
.cms-block { min-width: 0; }
.cms-h, .cms-title { margin: 0 0 14px; }
.cms-draft { background: #fff3cd; color: #5c4400; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.cms-banner { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #0a52c4, #1c6fe0); color: #fff; min-height: 260px; }
.cms-slide { display: none; min-height: 260px; background-size: cover; background-position: center; }
.cms-slide.is-on { display: flex; }
.cms-slide.has-img .cms-slide-in { background: linear-gradient(90deg, rgba(8, 28, 72, .78), rgba(8, 28, 72, .15)); }
.cms-slide-in { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 40px; width: 100%; }
.cms-slide-in h1, .cms-slide-in h2 { color: #fff; margin: 0; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; max-width: 720px; }
.cms-slide-in p { margin: 0; max-width: 620px; color: #e5edfb; font-size: 17px; }
.cms-slide-in .btn { align-self: flex-start; width: auto; min-width: 180px; padding-left: 28px; padding-right: 28px; }
.cms-dots { position: absolute; left: 40px; bottom: 16px; display: flex; gap: 8px; }
.cms-dots button { width: 10px; height: 10px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); }
.cms-dots button.is-on { background: #b6e03a; width: 26px; border-radius: 6px; }
.cms-text { font-size: 16px; line-height: 1.6; }
.cms-text img { max-width: 100%; height: auto; border-radius: 12px; }
.cms-offer { background: #f3f7ee; border: 1px solid #d9eab8; border-radius: 18px; padding: 22px 24px; }
.cms-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #0b1f4d; color: #fff; border-radius: 20px; padding: 26px 30px; }
.cms-cta h2 { color: #fff; margin: 0 0 6px; }
.cms-cta p { margin: 0; color: #c9d4ea; }
.cms-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cms-form { background: #fff; border: 1px solid #e0e7f0; border-radius: 20px; padding: 24px; }
.cms-form form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.cms-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.cms-form input, .cms-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e3; border-radius: 10px; font: inherit; }
.cms-form label:has(textarea), .cms-form .cms-consent, .cms-form .cms-form-msg { grid-column: 1 / -1; }
.cms-form .btn { justify-self: start; }
.cms-consent { margin: 0; font-size: 12px; color: #6b7a90; }
.cms-form-msg { margin: 0; font-weight: 600; color: #0a52c4; }
.cms-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cms-products .cms-all, .cms-all { display: inline-block; margin-top: 12px; font-weight: 700; }
.cms-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cms-cats .home-cats a { position: relative; }
.cms-cats .home-cats img { width: 72px; height: 72px; object-fit: contain; }
.cms-cats .home-cats small { color: #6b7a90; font-size: 12px; }
.cms-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.cms-date { color: #6b7a90; margin: 0 0 12px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.news-row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.news-card a { display: grid; gap: 8px; height: 100%; padding: 14px; background: #fff; border: 1px solid #e0e7f0; border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .15s; }
.news-card a:hover { border-color: #0a52c4; }
.news-card img, .news-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #eef3fb; }
.news-card small { color: #6b7a90; }
.news-card b { font-size: 16px; line-height: 1.3; }
.news-card p { margin: 0; color: #4b5b73; font-size: 14px; }
.home-news .home-head, .home-block.cms-products .home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-news { margin-top: 28px; }
.topbar a.tb-cms { color: inherit; }
@media (max-width: 640px) {
  .cms-slide-in { padding: 24px 20px 40px; }
  .cms-dots { left: 20px; }
  .cms-cta { padding: 22px; }
}

/* Боковые карточки витрины как слайдер (несколько карточек одного слота в «Баннерах») */
.showcase-tile .tile-slide { display: none; flex-direction: column; gap: 6px; background-size: cover; background-position: center; border-radius: inherit; }
.showcase-tile .tile-slide.is-on { display: flex; }
.showcase-tile.tile-slider { position: relative; padding-bottom: 30px; }
.showcase-tile .tile-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.showcase-tile .tile-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: currentColor; opacity: .3; cursor: pointer; }
.showcase-tile .tile-dots button.is-on { opacity: .9; width: 18px; border-radius: 4px; }
.showcase-tile .tile-link { font-weight: 700; font-size: 13px; color: inherit; margin-top: 4px; }
.showcase-tile .tile-slide .bs-phones { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; }

/* Ф06 своя плашка товара; Ф05 белый фон фото */
.tag-custom { background: var(--hz-navy, #0B1F4D); color: #fff; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-img, .product-photo { background: #fff; }

/* Ф03: один H1 на главной (остальные слайды — H2 того же вида) и картинка баннера для телефона */
.hero-slide h2.hero-h { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; max-width: 16ch; margin-bottom: 12px; color: inherit; }
body.page-home .hero-slide h2.hero-h { font-size: 30px; }
@media (max-width: 960px) { .hero-slide h2.hero-h { font-size: 26px; } }
@media (max-width: 640px) {
  body.page-home .hero-slide h2.hero-h, .hero-slide h2.hero-h { font-size: 24px; max-width: 14ch; }
  .hero-slide.has-mobile { background-image: var(--hero-m) !important; }
}
