/* CKC site font — static/home/fonts/ (+ fallback /fonts/ at site root) */
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC25.otf") format("opentype"),
       url("../../fonts/CRC25.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC35.otf") format("opentype"),
       url("../../fonts/CRC35.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC55.otf") format("opentype"),
       url("../../fonts/CRC55.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC55.otf") format("opentype"),
       url("../../fonts/CRC55.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC65.otf") format("opentype"),
       url("../../fonts/CRC65.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CRC";
  src: url("../fonts/CRC75.otf") format("opentype"),
       url("../../fonts/CRC75.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body,
body * {
  font-family: "CRC", sans-serif !important;
}

.social-share,
.social-share * {
  font-family: "socialshare" !important;
}

button,
input,
select,
textarea {
  font-family: inherit !important;
}

/* CKC site overrides */
.md-head .h-lang,
footer.md-foot .shares {
  display: none !important;
}

.md-head .ul1 > li.li1:has(a.a1[href*="video.html"]),
.md-mob_sideNav .hmob_top > .ul1 > li.li1:has(.dt a[href*="video.html"]) {
  display: none !important;
}

.md-search_form {
  display: none !important;
}

.md-head .h-search.show .bd {
  display: none !important;
}

.pro-page .pro-a.ckc-filter-hidden {
  display: none !important;
}

.pro-page .pro-item.ckc-section-empty {
  display: none !important;
}

.pro-page [class*="product_"].ckc-catalog-search-active .pro-item {
  float: none;
  width: 100%;
  clear: both;
}

.pro-page [class*="product_"].ckc-catalog-search-active .pro-bot {
  justify-content: flex-start;
}

.pro-1 .dd[data-tid="162"],
.pro-1 .li:has(.dd[data-tid="162"]),
.ckc-catalog-sidebar .dd[data-tid="162"],
.ckc-catalog-sidebar .li:has(.dd[data-tid="162"]),
.pro-page .page_item[data-tab="162"] {
  display: none !important;
}

.ckc-catalog-sidebar {
  display: block;
}

.ckc-catalog-pages {
  display: block;
}

.pro-page .page_item:not(.show) .pro-le {
  display: none !important;
}

.pro-page .pro-search-shared,
.pro-page .pages > .pro-le:first-child .pro-form {
  margin-bottom: 0.2rem;
}

.pro-page .pro-nav .aa.on {
  font-weight: 700;
  background-color: #ffb405;
  color: #111;
}

.pro-page .pro-bot .img img.c-img {
  opacity: 1;
}

.pro-com-6 .sw {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.pro-com-6 .img img.c-img {
  object-fit: cover;
}

.pro-com-6 .txt .h3 {
  color: #ffb405;
}

/* Убрать пункт «Офис и производство» */
a.a2[href*="about.html#ab4"],
a.a2[href*="#ab4"] {
  display: none !important;
}
li.li2:has(> a.a2[href*="ab4"]) {
  display: none !important;
}

/* Поиск на страницах проектов и новостей */
body.ckc-page-project .com-search,
body.ckc-page-news .com-search,
main.md-project .com-search,
main.md-news .com-search {
  display: none !important;
}

/* Скрыть «Соответствующие рекомендации» в статьях проектов и новостей */
.md-news .news-4 {
  display: none !important;
}

.md-news .news-page {
  display: block !important;
}

.md-news .news-page > .news-3 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  flex: none !important;
}

.md-news .news-page > .news-4 {
  display: none !important;
}

.md-news .det_cen {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.md-news .det_cen img {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  height: auto !important;
  margin: 0.5em auto !important;
  box-sizing: border-box;
}

.md-news .det_cen p > span {
  display: block !important;
  max-width: 100% !important;
}

/* Статьи проектов и новостей: без даты выпуска и блока «Делиться» */
.md-news .det_top .dt_2 {
  display: none !important;
}

/* Главная: без кнопки «Узнайте больше» перед блоком новостей */
.home-2 .btns {
  display: none !important;
}

.ckc-rich-text img,
.pro-11 .d4 img,
.pro-com-2 .text img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Контакты: одна секция — реквизиты + форма */
.md-contact .ctc-2 {
  display: none !important;
}

.md-contact .ckc-contact-unified {
  padding-top: 0.35rem !important;
  padding-bottom: 0.6rem !important;
}

.md-contact .ckc-contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: 0.5rem 0.7rem;
  align-items: start;
}

.md-contact .ckc-contact-info .com-tit,
.md-contact .ckc-contact-form .com-tit {
  margin-bottom: 0.1rem !important;
}

.md-contact .ckc-contact-info .txt {
  margin-top: 0.1rem !important;
  line-height: 1.55 !important;
  color: #444;
}

.md-contact .ckc-contact-info .txt p {
  margin: 0.1rem 0 !important;
}

.md-contact .ckc-contact-map {
  width: 100% !important;
  margin-top: 0.25rem;
}

.md-contact .ckc-contact-map .map {
  height: 1.6rem !important;
  max-height: 180px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.md-contact .ckc-contact-info .txt a,
.md-contact .ckc-contact-unified .txt a {
  color: #007ac8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.md-contact .ckc-contact-info .txt a:hover,
.md-contact .ckc-contact-unified .txt a:hover {
  color: #ffb405;
}

.md-contact .ckc-contact-form .form {
  margin-top: 0.12rem !important;
}

.md-contact .ckc-contact-unified .box {
  display: block !important;
}

@media (max-width: 900px) {
  .md-contact .ckc-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .md-contact .ckc-contact-map .map {
    height: 2rem !important;
    max-height: 220px;
  }
}

/* ========== CKC Search — в стиле сайта (чёрный + золото CKC) ========== */
body.cks-noscroll {
  overflow: hidden !important;
}

#ckcSearch {
  --cks-gold: #ffb405;
  --cks-gold-dark: #e29a00;
  --cks-blue: #007ac8;
  --cks-ink: #1a1a1a;
  --cks-muted: #5c5c5c;
  --cks-border: #d0d0d0;
  --cks-page: #ededed;
  --cks-panel: #f7f7f7;
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: inherit;
}

#ckcSearch.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

#ckcSearch .cks-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

#ckcSearch .cks-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: min(440px, 72vh);
  background: #fff;
  border: 1px solid var(--cks-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Верхняя полоса как у админки / шапки сайта */
#ckcSearch .cks-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  flex-shrink: 0;
}

#ckcSearch .cks-bar__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#ckcSearch .cks-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#ckcSearch .cks-close:hover {
  background: var(--cks-gold);
  border-color: var(--cks-gold);
  color: var(--cks-ink);
}

#ckcSearch .cks-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff 0%, var(--cks-panel) 100%);
  border-bottom: 3px solid var(--cks-gold);
  flex-shrink: 0;
}

#ckcSearch .cks-search-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.55;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

#ckcSearch .cks-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.35;
  padding: 4px 0;
  min-width: 0;
  background: transparent;
  color: var(--cks-ink);
}

#ckcSearch .cks-input::placeholder {
  color: #999;
}

#ckcSearch .cks-input:focus {
  outline: none;
}

#ckcSearch .cks-status {
  padding: 8px 14px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--cks-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

#ckcSearch .cks-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px;
  overflow-y: auto;
  flex: 1;
  display: none;
}

#ckcSearch .cks-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin: 2px 0;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}

#ckcSearch .cks-item--text {
  gap: 0;
  padding: 10px 12px;
}

#ckcSearch .cks-item:hover {
  background: #fff9e6;
  border-left-color: var(--cks-gold);
}

#ckcSearch .cks-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--cks-panel);
  border: 1px solid var(--cks-border);
  padding: 4px;
  box-sizing: border-box;
}

#ckcSearch .cks-thumb--ph {
  display: block;
  background: linear-gradient(135deg, var(--cks-panel) 0%, #e8e8e8 100%);
}

#ckcSearch .cks-meta {
  min-width: 0;
  flex: 1;
}

#ckcSearch .cks-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cks-ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ckcSearch .cks-sub {
  display: block;
  font-size: 12px;
  color: var(--cks-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

#ckcSearch .cks-id {
  display: block;
  font-size: 11px;
  color: var(--cks-muted);
  margin-top: 4px;
  font-family: ui-monospace, monospace;
}

#ckcSearch .cks-empty {
  display: none;
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--cks-muted);
  line-height: 1.45;
}

@media (max-width: 520px) {
  #ckcSearch {
    padding: 6vh 10px 10px;
  }
  #ckcSearch .cks-box {
    max-height: 78vh;
  }
}

/* ——— Заказ продукции (item/*.html) ——— */
/* На сайте html { font-size: 100px } — rem огромные. Блоки ниже в px + font-size 14px. */

.cko-order-wrap,
.cko-order-root {
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.cko-open {
  overflow: hidden;
  touch-action: none;
}

/* —— Кнопка на карточке товара —— */
.pro-11 .text .cko-order-wrap {
  margin: 12px 0 16px;
  max-width: 100%;
}

/* как .com-form .btn на контактах */
.pro-11 .text .cko-order-btn {
  height: auto !important;
  min-height: 36px !important;
  max-height: none !important;
  width: auto !important;
  max-width: min(100%, 280px) !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.cko-order-btn {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 36px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: #1a1a1a;
  background-color: #ffb405;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cko-order-btn:hover {
  background-color: #ff9e05;
}

.cko-order-btn:active {
  background-color: #e29a00;
}

/* —— Оверлей —— */
.cko-order-root.cko-order--closed {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cko-order-root.cko-order--open {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 12000;
  visibility: visible;
  pointer-events: auto;
  font-size: 15px !important;
}

.cko-order--open .cko-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation: cko-fade-in 0.2s ease;
}

.cko-order--open .cko-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  z-index: 12001;
}

/* —— Панель формы —— */
.cko-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  max-height: min(88vh, 580px);
  background: #fff;
  border-radius: 12px 12px 0 0;
  border-top: 3px solid #ffb405;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  animation: cko-slide-up 0.28s ease;
  overflow: hidden;
}

.cko-panel__grab {
  display: none;
}

.cko-panel__head {
  position: relative;
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.cko-panel__title {
  margin: 0;
  padding-right: 36px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.cko-panel__product {
  margin: 8px 0 0;
  padding: 0;
  display: block;
  max-width: calc(100% - 36px);
  font-size: 14px;
  line-height: 1.4;
  color: #5c5c5c;
  word-break: break-word;
}

.cko-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #444;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cko-close svg {
  width: 16px;
  height: 16px;
}

.cko-close:hover {
  background: #e8e8e8;
  color: #000;
}

.cko-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.cko-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cko-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cko-field--full {
  grid-column: 1 / -1;
}

.cko-field__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #5c5c5c;
}

.cko-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  transition: border-color 0.2s;
}

.cko-input::placeholder {
  color: #999;
}

.cko-input:focus {
  outline: none;
  border-color: #ffb405;
}

.cko-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 140px;
}

.cko-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.cko-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5c5c5c;
  cursor: pointer;
}

.cko-consent input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #e29a00;
}

.cko-err {
  margin: 8px 0 0;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #b42318;
  background: #fdecec;
  border-radius: 4px;
}

.cko-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.cko-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cko-btn--ghost {
  color: #5c5c5c;
  background: #ededed;
}

.cko-btn--ghost:hover {
  background: #e0e0e0;
  color: #1a1a1a;
}

.cko-btn--primary {
  color: #1a1a1a;
  background-color: #ffb405;
  min-width: 160px;
}

.cko-btn--primary:hover {
  background-color: #ff9e05;
}

.cko-btn--block {
  width: 100%;
  margin-top: 8px;
}

.cko-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Успех */
.cko-done {
  text-align: center;
  padding: 24px 12px 8px;
}

.cko-done__icon {
  display: none;
}

.cko-done__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.cko-done__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c5c5c;
}

@keyframes cko-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cko-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Планшет и ПК — компактная карточка по центру */
@media (min-width: 600px) {
  .cko-order--open .cko-dialog {
    align-items: center;
    padding: 20px;
  }

  .cko-panel {
    max-width: 440px;
    max-height: min(86vh, 560px);
    border-radius: 6px;
    border-top: 3px solid #ffb405;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: cko-pop-in 0.22s ease;
  }

  .cko-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cko-field--full {
    grid-column: 1 / -1;
  }

  .cko-panel__title {
    font-size: 22px;
  }
}

@media (min-width: 900px) {
  .cko-order-btn {
    min-height: 38px;
    padding: 0 24px;
    font-size: 16px;
  }

  .cko-panel {
    max-width: 460px;
  }
}

@keyframes cko-pop-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ——— Формы контактов / after-sales → CRM ——— */

.cko-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.ckc-form-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 4px;
}

.ckc-form-notice--ok {
  color: #0d7d4a;
  background: #e8f5ef;
  border: 1px solid #b8e6cc;
}

.ckc-form-notice--err {
  color: #b42318;
  background: #fdecec;
  border: 1px solid #f5c2c2;
}

/* ——— Контент из CMS / TinyMCE (заголовки, списки, ссылки) ——— */
.ckc-rich-text,
.det_cen,
.pro-11 .d4,
.pro-com-2 .text,
.pro-com-img .text,
.md-about .ab_txt,
.md-about .ab_cen {
  word-wrap: break-word;
}

.pro-com-2 .t1 {
  font-weight: 600;
  color: #222;
}

.ckc-rich-text h1,
.det_cen h1,
.pro-11 .d4 h1,
.pro-com-2 .text h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.65em 0 0.4em;
  color: #222;
}

.ckc-rich-text h2,
.det_cen h2,
.pro-11 .d4 h2,
.pro-com-2 .text h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.6em 0 0.35em;
  color: #222;
}

.ckc-rich-text h3,
.det_cen h3,
.pro-11 .d4 h3,
.pro-com-2 .text h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.55em 0 0.3em;
  color: #333;
}

.ckc-rich-text h4,
.det_cen h4,
.pro-11 .d4 h4,
.pro-com-2 .text h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.5em 0 0.28em;
  color: #333;
}

.ckc-rich-text h5,
.det_cen h5,
.pro-11 .d4 h5,
.pro-com-2 .text h5 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0.45em 0 0.25em;
  color: #444;
}

.ckc-rich-text h6,
.det_cen h6,
.pro-11 .d4 h6,
.pro-com-2 .text h6 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0.4em 0 0.2em;
  color: #555;
}

.ckc-rich-text ul,
.det_cen ul,
.pro-11 .d4 ul,
.pro-com-2 .text ul {
  list-style-type: disc;
  margin: 0.45em 0 0.85em;
  padding-left: 1.6em;
}

.ckc-rich-text ol,
.det_cen ol,
.pro-11 .d4 ol,
.pro-com-2 .text ol {
  list-style-type: decimal;
  margin: 0.45em 0 0.85em;
  padding-left: 1.6em;
}

.ckc-rich-text ul ul,
.det_cen ul ul,
.pro-11 .d4 ul ul,
.pro-com-2 .text ul ul {
  list-style-type: circle;
  margin: 0.25em 0 0.45em;
}

.ckc-rich-text ol ol,
.det_cen ol ol,
.pro-11 .d4 ol ol,
.pro-com-2 .text ol ol {
  list-style-type: lower-alpha;
}

.ckc-rich-text li,
.det_cen li,
.pro-11 .d4 li,
.pro-com-2 .text li {
  margin: 0.2em 0;
  line-height: inherit;
}

.ckc-rich-text a,
.det_cen a:not(.db_btn):not(.ua):not(.cr_a),
.pro-11 .d4 a,
.pro-com-2 .text a {
  color: #007ac8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ckc-rich-text a:hover,
.det_cen a:not(.db_btn):not(.ua):not(.cr_a):hover,
.pro-11 .d4 a:hover,
.pro-com-2 .text a:hover {
  color: #ffb405;
}

.ckc-rich-text strong,
.ckc-rich-text b,
.det_cen strong,
.det_cen b,
.pro-11 .d4 strong,
.pro-com-2 .text strong {
  font-weight: 700;
}

.ckc-rich-text blockquote,
.det_cen blockquote,
.pro-11 .d4 blockquote {
  margin: 0.75em 0;
  padding: 0.35em 0 0.35em 1em;
  border-left: 3px solid #ffb405;
  color: #555;
}

.ckc-rich-text table,
.det_cen table,
.pro-com-2 .text table {
  width: 100%;
  margin: 0.75em 0;
  border-collapse: collapse;
}

.ckc-rich-text table td,
.ckc-rich-text table th,
.det_cen table td,
.det_cen table th,
.pro-com-2 .text table td,
.pro-com-2 .text table th {
  border: 1px solid #e0e0e0;
  padding: 0.4em 0.55em;
  vertical-align: top;
}

.ckc-rich-text img,
.pro-11 .d4 img,
.pro-com-2 .text img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Не ломать width="900" в статьях — правила выше в .md-news .det_cen img */
.det_cen img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.det_cen p[style*="text-align: center"] img,
.det_cen p[style*="text-align:center"] img {
  margin-bottom: 0.5em;
}

/* ——— Главная: hero-баннер ——— */
.ho-ban {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.ho-ban > .swiper,
.ho-ban .swiper-container,
.ho-ban .swiper-wrapper,
.ho-ban .swiper-slide,
.ho-ban .swiper-slide.ho_sw {
  height: auto !important;
  min-height: 0 !important;
}

.ho-ban .ho_sw .img {
  width: 100%;
  padding-top: 44.2708333333%;
}

.ho-ban .ho_sw .text:empty,
.ho-ban .ho_sw .text .d1:empty {
  display: none;
}

.ho-ban .ho_sw .text {
  pointer-events: none;
}

/* ——— Видео на главной: hover-превью без соцсетей ——— */
.home-2 .share,
.home-2 .top:hover .share {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vdo-list .top.ckc-vd-active .vd,
.vdo-list .top.ckc-vd-active .ic {
  opacity: 0;
}

.vdo-list .img video.vd {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vdo-list .top.ckc-vd-active .img video.vd {
  opacity: 1 !important;
}

.vdo-list .top .img video.ckc-hover-vd,
.home-2 .top .img video.ckc-hover-vd {
  pointer-events: none;
}

.home-2 .img[v-src],
.home-2 a.img[v-src] {
  cursor: pointer;
}

.home-2 .img[v-src] .vd {
  pointer-events: none;
}

@media (max-width: 900px) {
  .ho-ban .ho_sw .img {
    padding-top: 0;
    height: auto;
    background-color: #0a0a0a;
  }

  .ho-ban .ho_sw .img img {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .ho-ban .sbtn {
    display: none;
  }

  .ho-ban .swiper-pagination {
    bottom: 0.12rem;
  }
}

@media (max-width: 520px) {
  .ho-ban .ho_sw .img img {
    object-fit: contain;
  }
}

/* ——— Видео lightbox на мобильных ——— */
.v-a.show .v-f {
  z-index: 10001;
}

/* ——— Фолбэк для блока "Похожие товары" (статьи + страница товара) ——— */
.md-news .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-wrapper,
.pro-com .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  height: auto !important;
  transform: none !important;
}

.md-news .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-slide.sw,
.pro-com .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-slide.sw {
  width: auto !important;
  margin: 0 !important;
}

.md-news .news-5 .swiper-container:not(.swiper-container-initialized) + .sbtn,
.pro-com .news-5 .swiper-container:not(.swiper-container-initialized) + .sbtn {
  display: none !important;
}

.md-news .news-5 .swiper-container:not(.swiper-container-initialized) ~ .sbtn,
.pro-com .news-5 .swiper-container:not(.swiper-container-initialized) ~ .sbtn {
  display: none !important;
}

@media (max-width: 900px) {
  .md-news .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-wrapper,
  .pro-com .news-5 .swiper-container:not(.swiper-container-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .v-a .v-c {
    right: 4%;
    top: max(3%, env(safe-area-inset-top));
    z-index: 10002;
  }

  .v-a.show .v-f {
    width: 100%;
    max-width: 100%;
    max-height: min(80vh, calc(100% - 72px));
  }
}

/* ——— Загрузки: вкладки (Библиотека / Плагин UE / …) ——— */
.down-1 .tags {
  min-width: 0;
  flex: 1 1 auto;
}

.down-1 .tags .swiper-container,
.down-1 .tags .swiper-wrapper {
  height: auto !important;
  align-items: flex-start;
}

.down-1 .tags .swiper-container:not(.swiper-container-initialized) .swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  transform: none !important;
}

.down-1 .tags .swiper-container:not(.swiper-container-initialized) .swiper-slide.sw {
  width: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.down-1 .swiper-slide.sw {
  width: auto !important;
  min-width: 1.45rem;
  max-width: 2.1rem;
  height: auto !important;
  align-self: flex-start;
  box-sizing: border-box;
}

.down-1 .sw .tt {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.25;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

@media (max-width: 900px) {
  .down-1 .tops {
    align-items: stretch;
    gap: 0.2rem;
  }

  .down-1 .tags {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .down-1 .tags .swiper-container {
    width: 100%;
    margin: 0;
    padding-bottom: 2px;
  }

  .down-1 .swiper-slide.sw {
    min-width: 1.55rem;
    max-width: 2.4rem;
    margin-right: 0 !important;
  }

  .down-1 .sw .tt {
    font-size: 0.24rem;
    line-height: 1.2;
  }

  .down-1 .form {
    margin-top: 0.16rem !important;
  }
}

/* ——— О компании: PDF-плейсхолдеры сертификатов (если используются) ——— */
.md-about .ab-2 .ckc-cert-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
  border: 1px solid #ddd;
  cursor: pointer;
  text-align: center;
  padding: 0.16rem;
}

.md-about .ab-2 .ckc-cert-pdf__title {
  font-size: 0.18rem;
  line-height: 1.35;
  color: #222;
  font-weight: 600;
  max-width: 92%;
}

.md-about .ab-2 .ckc-cert-pdf__badge {
  display: inline-block;
  font-size: 0.12rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: #c8a038;
  border-radius: 0.04rem;
  padding: 0.04rem 0.1rem;
}

.md-about .ab-2 .ckc-cert-pdf-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  text-align: center;
  padding: 0.08rem;
}

.md-about .ab-2 .ckc-cert-pdf-thumb span {
  font-size: 0.11rem;
  line-height: 1.25;
  color: #333;
  font-weight: 600;
}

/* ——— Страница товара: видео и lazy-картинки ——— */
.md-pro .pro-12 {
  background-color: #000;
}

.md-pro .pro-12 .ho-tit {
  text-align: center;
  margin-bottom: 0.2rem;
}

.md-pro .pro-12 .ho-tit .ht2 {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04rem;
}

.md-pro .pro-12 .video video.c-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 1;
}

.md-pro .pro-12 .video .mask {
  z-index: 2;
}

.md-pro .pro-com-6 .img.imgbg {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}

.md-pro .pro-com-6 .img.imgbg img.c-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Аксессуары: как на ckclighting.com (ПК — 4 карточки) ——— */
@media (min-width: 901px) {
  .md-pro .pro-com-3 {
    overflow: hidden;
    padding-bottom: 0.8rem;
  }

  .md-pro .pro-com-3 .swiper {
    position: relative;
    margin-top: 0.4rem;
    margin-left: 0.56rem;
    margin-right: 0.56rem;
  }

  .md-pro .pro-com-3 .swiper-container {
    overflow: hidden;
  }

  .md-pro .pro-com-3 .swiper-slide.sw {
    height: auto;
    background: #fff;
  }

  .md-pro .pro-com-3 .img {
    position: relative;
    padding-top: 100%;
    background: #fff;
  }

  .md-pro .pro-com-3 .img::before {
    border-color: #e5e5e5;
    pointer-events: none;
  }

  .md-pro .pro-com-3 .img .c-img {
    object-fit: contain;
    padding: 0.14rem;
    box-sizing: border-box;
    background: #fff;
  }

  .md-pro .pro-com-3 .text {
    background-color: #f1f1f1;
    min-height: 0.64rem;
    padding: 0.22rem 0.24rem 0.2rem;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
  }

  .md-pro .pro-com-3 .t1 {
    font-weight: 700;
    color: #111;
    line-height: 1.35;
  }

  .md-pro .pro-com-3 .t2:empty {
    display: none;
  }

  .md-pro .pro-com-3 .swiper-container.swiper-container-initialized .swiper-slide.sw {
    box-sizing: border-box;
    width: calc((100% - 60px) / 4) !important;
  }

  .md-pro .pro-com-3 .sbtn {
    width: 0.44rem;
    height: 0.44rem;
    background-color: #f3f3f3;
    background-size: 16% auto;
    border-radius: 50%;
  }

  .md-pro .pro-com-3 .sbtn:hover {
    background-color: #ffb405;
  }

  .md-pro .pro-com-3 .prev {
    left: auto;
    right: calc(100% + 0.14rem);
  }

  .md-pro .pro-com-3 .next {
    right: auto;
    left: calc(100% + 0.14rem);
  }
}

@media (min-width: 1440px) {
  .md-pro .pro-snav {
    display: block !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 1.6rem;
    height: 100%;
    z-index: 90;
    pointer-events: none;
  }

  .md-pro .pro-snav .snav {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    overflow: visible;
  }

  .md-pro .pro-snav .sa {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .md-pro .pro-snav .ss {
    padding: 0.1rem 0.08rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .md-pro .pro-com {
    padding-right: 1.6rem;
    box-sizing: border-box;
  }

  .md-pro .pro-com .w1200 {
    width: 100%;
    max-width: calc(12rem - 1.7rem);
    min-width: 0;
  }
}

@media (max-width: 1439px) {
  .md-pro .pro-snav {
    display: none !important;
  }

  body.ckc-pro-compact-nav {
    padding-bottom: 0 !important;
  }

  .md-pro .pro-com {
    padding-right: 0;
    padding-bottom: 0;
  }

  .md-pro .pro-com .w1200 {
    width: 100%;
    max-width: 12rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    box-sizing: border-box;
  }

  .md-pro .pro-tit {
    margin-left: -0.2rem;
    margin-right: -0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .md-pro .pro-com-img .text img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: top;
  }

  .md-pro .pro-com-3 .swiper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
  }

  .md-pro .pro-com-3 .swiper-slide.sw {
    background: #fff;
  }

  .md-pro .pro-com-3 .img .c-img {
    object-fit: contain;
    background: #fff;
  }

  .md-pro .pro-com-3 .text {
    background-color: #f1f1f1;
  }

  .md-pro .pro-com-3 .sbtn {
    background-color: #f3f3f3;
    width: 0.44rem;
    height: 0.44rem;
    background-size: 16% auto;
  }

  .md-pro .pro-com-3 .sbtn:hover,
  .md-pro .pro-com-3 .sbtn:active {
    background-color: #ffb405;
  }

  .md-pro .pro-com-3 .prev {
    left: 0;
    right: auto;
  }

  .md-pro .pro-com-3 .next {
    right: 0;
    left: auto;
  }

  .md-pro .pro-com-4 .list {
    flex-direction: column;
  }
}
