/* ==========================================================================
   Блог — в стиле главной (переменные цветов из brand.css)
   Список статей (news_main), рубрика (news_category), статья (news)
   ========================================================================== */
.bl { --bl-radius: var(--brand-radius, 14px); color: var(--brand-text); font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.bl a { text-decoration: none; }

/* --- тёмная шапка раздела --- */
.bl-hero { position: relative; overflow: hidden; background: var(--brand-black); color: #fff; padding: 24px 0 40px; }
.bl-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 0, .16), rgba(245, 184, 0, 0) 70%); pointer-events: none; }
.bl-hero .container { position: relative; z-index: 1; }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 13px; }
.bl-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .5); }
.bl-crumbs li + li::before { content: '/'; color: rgba(255, 255, 255, .3); }
.bl-crumbs a { color: rgba(255, 255, 255, .7); }
.bl-crumbs a:hover { color: var(--brand-yellow); }
.bl-eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(245, 184, 0, .14);
  color: var(--brand-yellow); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bl .bl-h1 { margin: 0; font-family: inherit; font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #fff; text-transform: none; }
.bl-lead { max-width: 680px; margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.bl-line { width: 100%; max-width: 360px; height: 2px; margin: 18px 0 0; border: 0;
  background: linear-gradient(90deg, rgba(216, 24, 0, 0), var(--brand-red) 30%, rgba(216, 24, 0, 0)); }
@media (min-width: 768px) { .bl .bl-h1 { font-size: 2.75rem; } .bl-hero { padding: 32px 0 56px; } }

/* --- рубрики-«чипсы» --- */
.bl-chips { display: flex; gap: 8px; margin: 24px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s; }
.bl-chips a.is-text { padding-left: 16px; }
.bl-chips img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bl-chips a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.bl-chips a.is-active { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--brand-ink); }
@media (min-width: 992px) { .bl-chips { flex-wrap: wrap; overflow: visible; } }

/* --- сетка карточек --- */
.bl-section { padding: 40px 0 56px; background: var(--brand-bg); }
@media (min-width: 992px) { .bl-section { padding: 56px 0 72px; } }
.bl-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 576px) { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .bl-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.bl-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--brand-line);
  border-radius: var(--bl-radius); transition: box-shadow .2s, transform .2s; }
.bl-card:hover { box-shadow: 0 10px 30px rgba(21, 21, 21, .08); transform: translateY(-2px); }
.bl-card[hidden] { display: none; }
.bl-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eaef; }
.bl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13px; color: var(--brand-text); }
.bl-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-yellow-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 600; line-height: 1.4; }
a.bl-badge:hover { background: var(--brand-yellow); color: var(--brand-ink); }
.bl .bl-card__title { margin: 0; font-family: inherit; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: 0; color: var(--brand-ink); text-transform: none; }
.bl-card__title a { color: inherit; }
.bl-card__title a:hover { color: var(--brand-red); }
.bl-card__text { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--brand-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--brand-ink); font-size: 14px; font-weight: 700; }
.bl-card__more::after { content: '→'; color: var(--brand-red); transition: transform .2s; }
.bl-card__more:hover { color: var(--brand-ink); }
.bl-card__more:hover::after { transform: translateX(3px); }

/* кнопки */
.bl .bl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 10px;
  background: var(--brand-yellow); color: var(--brand-ink); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background .2s; }
.bl .bl-btn:hover, .bl .bl-btn:focus { background: var(--brand-yellow-dark); color: var(--brand-ink); }
.bl .bl-btn--ghost { background: #fff; border: 1px solid var(--brand-line); }
.bl .bl-btn--ghost:hover { background: var(--brand-yellow-soft); }
.bl-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; font-size: 14px; }

/* описание рубрики */
.bl-desc { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--bl-radius); }
@media (min-width: 768px) { .bl-desc { padding: 32px; } }

/* ==========================================================================
   Статья
   ========================================================================== */
.bl-hero--article { padding-bottom: 120px; }
.bl-hero--article .bl-h1 { max-width: 900px; }
.bl-hero--article .bl-meta { margin: 16px 0 0; color: rgba(255, 255, 255, .65); }
.bl-hero--article .bl-badge { background: var(--brand-yellow); }
@media (min-width: 768px) { .bl-hero--article { padding-bottom: 160px; } .bl-hero--article .bl-h1 { font-size: 2.5rem; } }

.bl-article { background: var(--brand-bg); padding-bottom: 56px; }
.bl-cover { position: relative; z-index: 2; max-width: 960px; margin: -96px auto 0; border-radius: var(--bl-radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: #e9eaef; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.bl-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .bl-cover { margin-top: -128px; } }

.bl-body { max-width: 820px; margin: 24px auto 0; padding: 24px 20px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--bl-radius); }
@media (min-width: 768px) { .bl-body { margin-top: 32px; padding: 40px 48px; } }

/* типографика текста статьи */
.bl-content { color: #3d3f4a; font-size: 17px; line-height: 1.7; font-weight: 400; }
.bl-content p { margin: 0 0 16px; }
.bl .bl-content h2 { position: relative; margin: 32px 0 14px; padding-left: 16px; font-family: inherit; font-size: 1.375rem; line-height: 1.3; font-weight: 700;
  letter-spacing: 0; color: var(--brand-ink); text-transform: none; }
.bl .bl-content h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--brand-yellow); }
.bl .bl-content > section:first-child h2, .bl .bl-content > section:first-child { margin-top: 0; }
.bl .bl-content h3 { margin: 24px 0 10px; font-family: inherit; font-size: 1.125rem; line-height: 1.35; font-weight: 700; letter-spacing: 0; color: var(--brand-ink); }
.bl-content ul, .bl-content ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.bl-content ul li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.bl-content ul li::before { content: ''; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow); }
.bl-content ol { counter-reset: bl; }
.bl-content ol li { position: relative; margin: 0 0 8px; padding-left: 34px; counter-increment: bl; }
.bl-content ol li::before { content: counter(bl); position: absolute; left: 0; top: .15em; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-black); color: var(--brand-yellow); font-size: 13px; font-weight: 700; line-height: 1; }
.bl-content a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-yellow);
  text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.bl-content a:hover, .bl-content a:focus { color: var(--brand-red); text-decoration-color: var(--brand-red); }
.bl-content a:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; border-radius: 2px; }
.bl-content img { max-width: 100%; height: auto; border-radius: 10px; }
.bl-content table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 15px; }
.bl-content th { background: var(--brand-black); color: #fff; font-weight: 600; text-align: left; }
.bl-content th, .bl-content td { padding: 10px 12px; border: 1px solid var(--brand-line); }
.bl-content tr:nth-child(even) td { background: var(--brand-bg); }
.bl-content blockquote { margin: 0 0 16px; padding: 16px 20px; border-left: 4px solid var(--brand-red); background: var(--brand-bg); border-radius: 0 10px 10px 0; }
.bl-table-wrap { overflow-x: auto; }

/* другие статьи */
.bl-related { max-width: 1110px; margin: 48px auto 0; }
.bl .bl-related__title { margin: 0 0 24px; font-family: inherit; font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: 0;
  text-transform: uppercase; color: var(--brand-ink); }
@media (min-width: 992px) { .bl .bl-related__title { font-size: 1.75rem; } }

/* постраничка рубрики (Pagination OpenCart) */
.bl-pagination { margin-top: 32px; }
.bl-pagination .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bl-pagination .pagination li a, .bl-pagination .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--brand-line); background: #fff; color: var(--brand-ink); font-weight: 600; }
.bl-pagination .pagination li a:hover { background: var(--brand-yellow-soft); }
.bl-pagination .pagination li.active span, .bl-pagination .pagination li.active a { background: var(--brand-yellow); border-color: var(--brand-yellow); }

/* ==========================================================================
   Светлая шапка раздела (для страниц, где чёрный не нужен: контакты и т.п.)
   ========================================================================== */
.bl-hero--light { background: var(--brand-bg); color: var(--brand-ink); }
.bl-hero--light::after { background: radial-gradient(circle, rgba(245, 184, 0, .22), rgba(245, 184, 0, 0) 70%); }
.bl-hero--light .bl-crumbs li { color: var(--brand-text); }
.bl-hero--light .bl-crumbs li + li::before { color: #b9bcc8; }
.bl-hero--light .bl-crumbs a { color: var(--brand-text); }
.bl-hero--light .bl-crumbs a:hover { color: var(--brand-red); }
.bl-hero--light .bl-eyebrow { background: var(--brand-yellow-soft); color: #8a6400; }
.bl .bl-hero--light .bl-h1 { color: var(--brand-ink); }
.bl-hero--light .bl-lead { color: var(--brand-text); }

/* ==========================================================================
   Контакты
   ========================================================================== */
.ct-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
@media (min-width: 576px) { .ct-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ct-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ct-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--bl-radius); }
.ct-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 12px;
  background: var(--brand-yellow-soft); color: var(--brand-ink); }
.ct-ic svg { width: 24px; height: 24px; fill: currentColor; }
.ct-label { font-size: 13px; color: var(--brand-text); }
.ct-value { font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--brand-ink); word-break: break-word; }
.bl a.ct-value:hover { color: var(--brand-red); }
.ct-note { font-size: 14px; line-height: 1.45; color: var(--brand-text); }
.ct-msg { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-msg a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: var(--brand-bg);
  color: var(--brand-ink); font-size: 15px; font-weight: 600; transition: background .2s; }
.ct-msg a:hover { background: var(--brand-yellow-soft); color: var(--brand-ink); }
.ct-msg svg { width: 18px; height: 18px; fill: currentColor; }

.ct-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 992px) { .ct-main { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: stretch; } }
.ct-form { padding: 24px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--bl-radius); }
@media (min-width: 768px) { .ct-form { padding: 32px; } }
.bl .ct-form__title { margin: 0; font-family: inherit; font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--brand-ink); }
.ct-form__lead { margin: 8px 0 20px; font-size: 15px; color: var(--brand-text); }
.ct-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 576px) { .ct-fields { grid-template-columns: repeat(2, 1fr); } .ct-fields .ct-field--full { grid-column: 1 / -1; } }
.bl .ct-form .form-wrap { margin: 0; }
.bl .ct-form .form-label-outside { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 500; color: var(--brand-ink); position: static; transform: none; }
.bl .ct-form .form-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--brand-line); border-radius: 10px; background: #fff;
  color: var(--brand-ink); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.bl .ct-form textarea.form-input { min-height: 130px; resize: vertical; }
.bl .ct-form .form-input:focus { outline: 0; border-color: var(--brand-yellow); box-shadow: 0 0 0 3px var(--brand-yellow-soft); }
.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.ct-form__foot small { font-size: 13px; color: var(--brand-text); }
.ct-map { min-height: 360px; border-radius: var(--bl-radius); overflow: hidden; background: #e9eaef; border: 1px solid var(--brand-line); }
.ct-map #map { width: 100%; height: 100%; min-height: 360px; }
/* мобильные: карточки контактов компактно — иконка слева */
@media (max-width: 575.98px) {
  .ct-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; align-items: start; }
  .ct-card .ct-ic { grid-row: 1 / span 4; margin: 0; }
  .ct-value { font-size: 17px; }
}
.bl-hero--light + .bl-section { padding-top: 8px; }
@media (min-width: 992px) { .bl-hero--light + .bl-section { padding-top: 16px; } }

/* ==========================================================================
   Галерея: «Наш сервис изнутри» — главы с текстом и подборкой фото
   ========================================================================== */
.bl-hero--light .bl-chips a { background: #fff; border-color: var(--brand-line); color: var(--brand-ink); }
.bl-hero--light .bl-chips a:hover { background: var(--brand-yellow-soft); color: var(--brand-ink); }
.gl-chap { padding: 48px 0; background: #fff; scroll-margin-top: 90px; }
.gl-chap:nth-of-type(even) { background: var(--brand-bg); }
@media (min-width: 992px) { .gl-chap { padding: 72px 0; } }
.gl-chap__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 992px) {
  .gl-chap__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
  .gl-chap--rev .gl-chap__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .gl-chap--rev .gl-chap__text { order: 2; }
  .gl-chap__text { position: sticky; top: 110px; }
}
.gl-num { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-text); }
.gl-num b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-yellow); color: var(--brand-ink); font-size: 16px; letter-spacing: 0; }
.bl .gl-title { margin: 0; font-family: inherit; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--brand-ink); text-transform: none; }
@media (min-width: 992px) { .bl .gl-title { font-size: 2rem; } }
.gl-text { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--brand-text); }
.gl-points { list-style: none; margin: 18px 0 0; padding: 0; }
.gl-points li { position: relative; margin: 0 0 10px; padding-left: 30px; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--brand-ink); }
.gl-points li::before { content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23151515' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.gl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--brand-ink); font-size: 15px; font-weight: 700; }
.gl-link::after { content: '→'; color: var(--brand-red); }
.bl a.gl-link:hover { color: var(--brand-red); }

/* подборка фото: первое крупное, остальные плиткой */
.gl-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 576px) { .gl-photos { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gl-photos--2 { grid-template-columns: repeat(2, 1fr) !important; }
.gl-photo { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 1 / 1; background: #e9eaef; cursor: zoom-in; }
.gl-photo:first-child { grid-column: span 2; grid-row: span 2; }
.gl-photos--2 .gl-photo:first-child { grid-column: auto; grid-row: auto; }
/* растянутое последнее фото (дозаполняет ряд): мобильный — 2 колонки */
.gl-photo--m2 { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (min-width: 576px) {
  .gl-photo--m2 { grid-column: auto; aspect-ratio: 1 / 1; }
  .gl-photo--d2 { grid-column: span 2; aspect-ratio: 2 / 1; }
  .gl-photo--d3 { grid-column: span 3; aspect-ratio: 3 / 1; }
}
.gl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gl-photo:hover img { transform: scale(1.05); }
.gl-photo::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; opacity: 0; transition: opacity .2s;
  background: rgba(18, 18, 18, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b800' d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.gl-photo:hover::after, .gl-photo:focus-visible::after { opacity: 1; }

/* бренды: баннеры-ссылки на страницы брендов */
.gl-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 768px) { .gl-brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gl-brands { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.gl-brand { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.gl-brand:hover { box-shadow: 0 10px 30px rgba(21, 21, 21, .08); transform: translateY(-2px); }
.gl-brand img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gl-brand span { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.gl-brand span::after { content: '→'; color: var(--brand-red); }

/* окно просмотра */
#image-gallery .modal-content { background: #121212; }
#image-gallery .modal-header { border-bottom: 3px solid var(--brand-yellow); }
#image-gallery .modal-title { color: #fff; }
#image-gallery .modal-body { background: #121212 !important; }
#image-gallery .modal-footer { display: flex !important; justify-content: space-between; background: #121212; border-top: 0; }
#image-gallery .gl-nav { min-width: 48px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--brand-yellow); color: var(--brand-ink);
  font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
#image-gallery .gl-nav:hover { background: var(--brand-yellow-dark); }
.gallery-close { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: transparent; color: #fff; font-size: .875rem; line-height: 1; cursor: pointer; }
.gallery-close span { font-size: 1.25rem; line-height: 1; }
.gallery-close:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
#image-gallery .modal-dialog { max-width: min(1000px, calc(100vw - 1rem)); margin: .5rem auto; }
#image-gallery .modal-body { display: flex; align-items: center; justify-content: center; }
#image-gallery-image { display: block; width: auto !important; max-width: 100%; height: auto; max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); object-fit: contain; }
@media (max-width: 991.98px) { #image-gallery .modal-dialog { margin-top: 76px; } #image-gallery-image { max-height: calc(100dvh - 10rem - 76px); } }

/* ==========================================================================
   Категории услуг (/remont/, бренды, гидронасосы)
   ========================================================================== */
.cat-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.cat-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-line);
  font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.cat-facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow); }
.cat-facts li.is-red::before { background: var(--brand-red); }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.cat-phone { color: var(--brand-ink); line-height: 1.2; }
.cat-phone b { display: block; font-size: 20px; font-weight: 700; }
.cat-phone small { display: block; font-size: 13px; color: var(--brand-text); }
.bl a.cat-phone:hover b { color: var(--brand-red); }

.cat-block { padding: 40px 0; background: #fff; }
.cat-block--gray { background: var(--brand-bg); }
@media (min-width: 992px) { .cat-block { padding: 56px 0; } }
.bl .cat-h2 { margin: 0 0 24px; font-family: inherit; font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--brand-ink); }
@media (min-width: 992px) { .bl .cat-h2 { font-size: 1.75rem; margin-bottom: 32px; } }

/* марки */
.cat-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .cat-brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .cat-brands { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.cat-brand { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.cat-brand:hover { border-color: var(--brand-yellow); box-shadow: 0 10px 30px rgba(21, 21, 21, .08); transform: translateY(-2px); }
.cat-brand__logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 14px; }
.cat-brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-brand__name { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--brand-line);
  font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--brand-ink); }
.cat-brand__name::after { content: '→'; color: var(--brand-red); flex: none; }

/* описание категории — текст как в статьях блога */
.cat-desc { max-width: 920px; margin: 0 auto; padding: 24px 20px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--bl-radius); }
@media (min-width: 768px) { .cat-desc { padding: 40px 48px; } }
.cat-desc .bl-content > :first-child { margin-top: 0; }
/* картинки описания — всегда в своих пропорциях (у некоторых в админке задано style="width: 50%") */
.cat-desc .bl-content img { display: block; max-width: 100%; height: auto !important; margin: 0 auto 20px; border-radius: 10px; }
/* логотип бренда в самом начале описания — не крупнее 360px по ширине */
.cat-desc .bl-content > :first-child img:first-child, .cat-desc .bl-content > img:first-child { max-width: min(360px, 100%); border-radius: 0; }
.cat-desc .bl-content center, .cat-desc .bl-content [style*="text-align: center"] { text-align: left !important; }
.cat-desc .bl-content table { display: block; overflow-x: auto; }
@media (min-width: 768px) { .cat-desc .bl-content table { display: table; } }

/* ассортимент (если есть товары) */
.cat-prod { display: flex; flex-direction: column; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; }
.cat-prod img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.cat-prod__name { flex: 1; margin: 10px 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.cat-prod__name a { color: var(--brand-ink); }
.cat-prod .bl-btn { width: 100%; min-height: 42px; padding: 8px 12px; font-size: 13px; }

/* FAQ (модуль faqcat) — развёрнут целиком, карточками */
.faq-list { max-width: 920px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { padding: 20px 22px; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; }
.bl .faq-item__q, .faq-item__q { position: relative; margin: 0; padding-left: 38px; font-family: inherit; font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: var(--brand-ink); }
.faq-item__q::before { content: '?'; position: absolute; left: 0; top: -2px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--brand-yellow); color: var(--brand-ink); font-size: 15px; font-weight: 800; }
.faq-item__a { margin-top: 10px; padding-left: 38px; font-size: 16px; line-height: 1.6; color: #3d3f4a; }
.faq-item__a p { margin: 0 0 8px; }
.faq-item__a > :last-child, .faq-item__a div > :last-child { margin-bottom: 0; }
.faq-item__a b, .faq-item__a strong { color: var(--brand-ink); }

/* правки: стандартные маркеры списков из style.css (.description/.inner-content) — убираем, оставляем свои */
.bl .bl-content ul, .bl .bl-content ol { list-style: none !important; padding-left: 0 !important; margin-left: 0; }
.bl .bl-content ul li, .bl .bl-content ol li { list-style: none !important; }
.bl .bl-content ul li::marker, .bl .bl-content ol li::marker { content: none; }
.bl .bl-content strong, .bl .bl-content b { color: var(--brand-ink); font-weight: 700; }

/* «Фото работ» в категориях: ровная сетка, фото целиком (часто это агрегаты на белом фоне) */
.gl-photos--flat { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 768px) { .gl-photos--flat { grid-template-columns: repeat(4, 1fr) !important; } }
.gl-photos--flat .gl-photo, .gl-photos--flat .gl-photo:first-child { grid-column: auto; grid-row: auto; background: #fff; border: 1px solid var(--brand-line); }
.gl-photos--flat .gl-photo img { object-fit: contain; padding: 8px; }

/* FAQ и описание — одна колонка с заголовком */
.cat-narrow { max-width: 920px; margin: 0 auto; }
/* мобильные: «width: 50%» из админки слишком мелко — растягиваем на ширину текста (логотип — на 60%) */
@media (max-width: 575.98px) {
  .cat-desc .bl-content img[style*="width"] { width: 100% !important; }
  .cat-desc .bl-content > :first-child img:first-child[style*="width"], .cat-desc .bl-content > img:first-child[style*="width"] { width: 60% !important; }
}

/* галерея: девиз и подсказка в шапке */
.gl-motto { max-width: 760px; margin: 14px 0 0; font-size: 20px; line-height: 1.4; font-weight: 500; color: var(--brand-ink); }
.gl-motto b { font-weight: 800; }
@media (min-width: 768px) { .gl-motto { font-size: 24px; } }
.gl-hint { max-width: 760px; margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--brand-yellow); border-radius: 0 10px 10px 0; background: #fff;
  font-size: 15px; line-height: 1.5; color: var(--brand-text); }
.gl-hint a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bl .gl-hint a:hover { color: var(--brand-red); }

/* ==========================================================================
   Кейсы (/cases/)
   ========================================================================== */
.cs-wrap { max-width: 1040px; margin: 0 auto; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cs-meta li { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--brand-line);
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--brand-ink); }
.cs-meta li span { font-size: 12px; font-weight: 500; color: var(--brand-text); }
.gl-chap:nth-of-type(even) .cs-meta li { background: var(--brand-bg); }
.cs-lead { max-width: 860px; margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: #3d3f4a; }
.cs-facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
@media (min-width: 576px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cs-facts { grid-template-columns: repeat(4, 1fr); } }
.cs-fact { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--brand-black); color: #fff; }
.cs-fact span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-yellow); }
.cs-fact b { font-size: 15px; line-height: 1.4; font-weight: 600; color: #fff; }

.cs-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
@media (min-width: 768px) { .cs-photos { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.cs-photo { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #e9eaef; cursor: zoom-in; }
.cs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cs-photo:hover img { transform: scale(1.05); }

.cs-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 992px) { .cs-cols { grid-template-columns: 1fr 1fr; gap: 20px; } }
.cs-col { padding: 22px; border: 1px solid var(--brand-line); border-radius: 14px; background: #fff; }
.bl .cs-h3 { margin: 0 0 14px; font-family: inherit; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--brand-ink); }
.cs-list { margin: 0; padding: 0; list-style: none; }
.cs-list li { position: relative; margin: 0 0 10px; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #3d3f4a; }
.cs-list li:last-child { margin-bottom: 0; }
.cs-list--found li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-red); }
.cs-list--done li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23151515' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }

.cs-steps { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 576px) { .cs-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cs-steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.cs-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-yellow-soft);
  font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--brand-ink); }
.cs-steps li b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-black); color: var(--brand-yellow); font-size: 13px; }

.cs-result { margin-top: 20px; padding: 18px 20px; border-left: 4px solid var(--brand-yellow); border-radius: 0 12px 12px 0; background: #fff;
  font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--brand-ink); }
.gl-chap:nth-of-type(odd) .cs-result { background: var(--brand-bg); }
.cs-result span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-red); }

.cs-full { margin-top: 20px; border: 1px solid var(--brand-line); border-radius: 12px; background: #fff; }
.cs-full summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.cs-full summary::-webkit-details-marker { display: none; }
.cs-full summary::after { content: '+'; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-yellow); font-size: 18px; line-height: 1; }
.cs-full[open] summary::after { content: '−'; }
.cs-full .bl-content { padding: 0 20px 20px; font-size: 16px; }
.cs-full .bl-content h3 { margin-top: 18px; }

/* анонс кейсов на главной */
.cs-home { padding: 48px 0; background: var(--brand-bg); }
@media (min-width: 992px) { .cs-home { padding: 72px 0; } }
.cs-home__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .cs-home__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cs-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; border: 1px solid var(--brand-line); border-radius: 14px; background: #fff;
  color: inherit; transition: box-shadow .2s, transform .2s; }
a.cs-card:hover { box-shadow: 0 10px 30px rgba(21, 21, 21, .08); transform: translateY(-2px); color: inherit; }
.cs-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-black); }
.cs-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-card__img--empty { display: flex; align-items: center; justify-content: center; color: var(--brand-yellow); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cs-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px; }
.cs-card__machine { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-red); }
.cs-card__title { font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--brand-ink); }
.cs-card__text { font-size: 15px; line-height: 1.55; color: var(--brand-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.cs-card__more::after { content: ' →'; color: var(--brand-red); }
/* кейсы: фото по этапам */
.cs-gallery { margin-top: 24px; display: grid; gap: 18px; }
.cs-stage__title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.cs-stage__title::before { content: ''; align-self: center; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-yellow); }
.cs-stage__title small { font-size: 13px; font-weight: 500; color: var(--brand-text); }
.cs-gallery .cs-photos { margin-top: 0; }
@media (min-width: 992px) { .cs-gallery .cs-photos { grid-template-columns: repeat(5, 1fr); } }
/* кейсы: «Рабочие будни» — текст сверху, сетка фото ниже */
.cs-shop__text { max-width: 860px; }
.cs-shop__points { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cs-photos--shop { margin-top: 28px; }
@media (min-width: 992px) { .cs-photos--shop { grid-template-columns: repeat(5, 1fr); } }
.cs-photo[hidden] { display: none; }

/* ==========================================================================
   Шапка категории с графикой: текст слева, фото из цеха справа
   ========================================================================== */
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 992px) { .cat-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.cat-hero__media { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--brand-black);
  box-shadow: 0 20px 50px rgba(21, 21, 21, .18); aspect-ratio: 16 / 10; }
@media (min-width: 992px) { .cat-hero__media { aspect-ratio: 4 / 5; max-height: 520px; justify-self: end; width: 100%; max-width: 440px; } }
.cat-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-hero__media::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(18, 18, 18, .85), rgba(18, 18, 18, 0)); pointer-events: none; }
/* жёлтая «скоба» в углу — фирменный акцент */
.cat-hero__media::before { content: ''; position: absolute; z-index: 2; right: 16px; top: 16px; width: 44px; height: 44px;
  border-top: 4px solid var(--brand-yellow); border-right: 4px solid var(--brand-yellow); border-radius: 0 10px 0 0; }
.cat-hero__logo { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; align-items: center; justify-content: center;
  width: 150px; height: 64px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.cat-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-hero__cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; margin: 0; color: #fff; font-size: 14px; line-height: 1.35; }
.cat-hero__cap b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-yellow); }
@media (min-width: 992px) { .cat-hero__cap { font-size: 16px; } .cat-hero__logo { width: 170px; height: 72px; } }
