/* =========================================================
   Squid Ink — собственные стили поверх template.css
   Подключается последним в templates/example/index.php
   ========================================================= */

/* ---------- Изображения (плагин System - Squid Images) ---------- */
/* <picture> не должен влиять на вёрстку: ведёт себя так, будто его нет */
picture { display: contents; }
/* у <img> есть width/height для резерва места (CLS), но пропорции сохраняются.
   :where() — нулевая специфичность, любые правила шаблона имеют приоритет */
:where(img[width][height]) { height: auto; }

/* ---------- Слайдер на главной (ТЗ п. 6: ниже по высоте на ПК) ---------- */
/* до инициализации Slick показываем только первый слайд — без «прыжка» вёрстки */
.header__slider:not(.slick-initialized) > .header__slider-item:not(:first-child) { display: none; }

@media (min-width: 992px) {
  .header__slider-item img {
    height: clamp(320px, 26vw, 500px);
    object-fit: cover;
    object-position: center;
  }
}

/* ---------- Каталог продукции на главной (ТЗ п. 6: карточки крупнее) ---------- */
.category__grid-item { background-position: center !important; }

@media (min-width: 768px) {
  .container-cat-bg .category__grid { justify-content: center; }
  .container-cat-bg .category__grid-wrapper,
  .container-cat-bg .category__grid-wrapper:nth-child(5n+1) {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    height: 260px;
    margin-bottom: 30px;
  }
  .container-cat-bg .category__grid-item { padding: 28px; }
  .container-cat-bg .category__grid-item span {
    font-size: 21px;
    line-height: 1.3;
    max-width: 80%;
  }
}

@media (min-width: 1200px) {
  .container-cat-bg .category__grid-wrapper,
  .container-cat-bg .category__grid-wrapper:nth-child(5n+1) { height: 330px; }
  .container-cat-bg .category__grid-item span { font-size: 24px; }
}

/* =========================================================
   Мега-меню «Принтеры» (пункт меню id 109)
   Содержимое правится в Менеджере меню; оформление групп задаётся
   «CSS-классом ссылки»: sq-mega-h36 / sq-mega-h72 / sq-mega-h141 / sq-mega-dod /
   sq-mega-compare / sq-mega-all
   ========================================================= */
@media (min-width: 992px) {
  #horizontal-multilevel-menu > li.item-109 { position: static; }
  #horizontal-multilevel-menu > li.item-109 > a { display: inline-flex; align-items: center; gap: 6px; }
  #horizontal-multilevel-menu > li.item-109 > a::after {
    content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .6;
  }
  #horizontal-multilevel-menu > li.item-109:hover > a::after,
  #horizontal-multilevel-menu > li.item-109:focus-within > a::after { transform: translateY(1px) rotate(-135deg); }

  #horizontal-multilevel-menu > li.item-109 > .sub__menu {
    display: block !important; position: absolute !important; left: 0; right: 0; top: 100%; z-index: 1000;
    margin: 0 !important; padding: 28px 32px 24px !important;
    background: #fff; border-top: 3px solid #c52121; box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  #horizontal-multilevel-menu > li.item-109:hover > .sub__menu,
  #horizontal-multilevel-menu > li.item-109:focus-within > .sub__menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  #horizontal-multilevel-menu > li.item-109 > .sub__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }

  #horizontal-multilevel-menu > li.item-109 > .sub__menu > .sub-list {
    max-width: none; display: grid; gap: 6px 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(230px, 1.2fr);
  }
  #horizontal-multilevel-menu > li.item-109 > .sub__menu > .sub-list > li { margin: 0 !important; grid-row: 1 / span 2; min-width: 0; }
  #horizontal-multilevel-menu > li.item-109 > .sub__menu > .sub-list > li:has(> .sq-mega-compare) { grid-column: 5; grid-row: 1; }
  #horizontal-multilevel-menu > li.item-109 > .sub__menu > .sub-list > li:has(> .sq-mega-all) { grid-column: 5; grid-row: 2; }

  /* заголовок группы */
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a {
    display: block; color: #2b3e4f; font-size: 10px; line-height: 14px; letter-spacing: .02em; text-transform: uppercase;
    padding: 0 0 12px; margin: 0 0 8px; border-bottom: 1px solid #e5e5e5;
  }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a:hover { color: #c52121; }
  #horizontal-multilevel-menu li.item-109 .sub__menu li a::after { content: none; }
  #horizontal-multilevel-menu li.item-109 a[class*="sq-mega-h"]::before,
  #horizontal-multilevel-menu li.item-109 a.sq-mega-dod::before {
    display: block; margin-bottom: 6px; padding-left: 16px;
    font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #000;
    background:
      linear-gradient(#c52121 0 0) 0 100% / 4px var(--h, 0%) no-repeat,
      repeating-linear-gradient(to top, #9aa0a6 0 1px, transparent 1px 4px) 6px 100% / 5px 100% no-repeat;
  }
  #horizontal-multilevel-menu li.item-109 a.sq-mega-h36::before  { content: "до 36 мм";  --h: 26%; }
  #horizontal-multilevel-menu li.item-109 a.sq-mega-h72::before  { content: "до 72 мм";  --h: 51%; }
  #horizontal-multilevel-menu li.item-109 a.sq-mega-h141::before { content: "до 141 мм"; --h: 100%; }
  #horizontal-multilevel-menu li.item-109 a.sq-mega-dod::before  { content: "D.O.D"; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a:hover::before { color: #c52121; }

  /* модели (3-й уровень) */
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu {
    display: block !important; position: static !important; margin: 0 !important; padding: 0 !important;
    box-shadow: none; background: none; border: 0;
  }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu .sub-list { display: block; max-width: none; }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu li { margin: 0 !important; }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; margin: 0 -10px; border-radius: 3px;
    font-size: 14px; line-height: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #000;
    transition: background .15s, color .15s;
  }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a::after {
    content: "→"; position: static; width: auto; border: 0; color: #c52121; opacity: 0; transform: translateX(-4px); transition: .15s;
  }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a:hover { background: #f3f3f3; color: #c52121; }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a:hover::after { opacity: 1; transform: none; }

  /* плитка «Сравнение моделей» */
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    min-height: 150px; height: 100%; margin: 0; padding: 56px 20px 18px; border: 0; border-radius: 3px; text-transform: uppercase; letter-spacing: .02em;
    background: #2b3e4f; color: #fff; font-size: 13px; line-height: 18px; font-weight: 700;
    transition: background .2s;
  }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare::before {
    content: ""; position: absolute; top: 18px; left: 20px; width: 34px; height: 26px;
    background:
      linear-gradient(#c52121 0 0) 0 100% / 8px 45% no-repeat,
      linear-gradient(#fff 0 0) 13px 100% / 8px 100% no-repeat,
      linear-gradient(#c52121 0 0) 26px 100% / 8px 70% no-repeat;
  }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare::after {
    content: "Высота, скорость, разрешение и чернила моделей CoPilot в двух таблицах →" !important;
    position: static; width: auto; border: 0; text-transform: none; letter-spacing: 0;
    font-size: 12px; line-height: 17px; font-weight: 400; color: #c9d1d9;
  }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare:hover { background: #c52121; color: #fff; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare:hover::after { color: #fff; }

  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-all { border: 0; padding: 10px 0 0; margin: 0; color: #c52121; font-weight: 600; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-all::after { content: " →" !important; position: static; border: 0; width: auto; }
}

@media (max-width: 991px) {
  /* в мобильном меню показываем группы и сравнение, модели — на странице подбора */
  #horizontal-multilevel-menu > li.item-109 > .sub__menu {
    display: block !important; position: static !important; box-shadow: none; background: none;
    margin: 0 !important; padding: 4px 0 8px 16px !important;
  }
  #horizontal-multilevel-menu > li.item-109 > .sub__menu > .sub-list { max-width: none; }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu { display: none !important; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li { margin-bottom: 10px !important; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a { font-size: 11px; line-height: 15px; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-compare { color: #c52121; font-weight: 700; }
  #horizontal-multilevel-menu li.item-109 .sub-list > li > a.sq-mega-all { display: none; }
}


/* =========================================================
   Страница /printery/highresmenu.html — «Подбор по высоте печати» (описание категории 11)
   и страница «Сравнение принтеров CoPilot». Цвета — в переменных ниже.
   ========================================================= */
.sq-pick, .sq-cmp {
  --sq-accent: #c52121;        /* фирменный красный сайта */
  --sq-accent-dark: #a01a1a;
  --sq-ink: #000;              /* основной текст */
  --sq-muted: #5b6670;         /* второстепенный текст */
  --sq-line: #e5e5e5;          /* рамки */
  --sq-bg: #ffffff;            /* фон карточки */
  --sq-bg-soft: #f3f3f3;       /* фон подсказки, чипов (как шапка) */
  --sq-radius: 4px;
  --sq-header-offset: 110px;    /* высота липкой шапки, чтобы якорь не уезжал под неё */

  color: var(--sq-ink);
  margin: 0 0 2.5rem;
}
.sq-pick *, .sq-pick *::before, .sq-pick *::after,
.sq-cmp *, .sq-cmp *::before, .sq-cmp *::after { box-sizing: border-box; }

/* ---------- Вводный текст ---------- */
.sq-pick__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 60rem;
  margin: 0 0 1.75rem;
}

/* ---------- Сетка карточек ---------- */
.sq-pick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
@media (max-width: 1100px) { .sq-pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .sq-pick__grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Карточка ---------- */
.sq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sq-bg);
  border: 1px solid var(--sq-line);
  border-top: 4px solid var(--sq-accent);
  border-radius: var(--sq-radius);
  padding: 1.5rem 1.25rem 1.25rem;
  scroll-margin-top: var(--sq-header-offset);
  transition: box-shadow .2s ease, transform .2s ease;
}
.sq-card:hover { box-shadow: 0 12px 32px rgba(20, 22, 26, .10); transform: translateY(-2px); }
.sq-card:target { box-shadow: 0 0 0 3px var(--sq-accent); }

/* Крупная высота печати + шкала */
.sq-card__size {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  margin: 0 0 1rem;
  min-height: 73px;
}
.sq-card__value {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.sq-card__value small { font-size: .45em; font-weight: 600; color: var(--sq-muted); letter-spacing: 0; }
.sq-card__value span { font-size: 10px; font-weight: 600; color: var(--sq-muted); display: block; margin-bottom: .4rem; letter-spacing: .02em; text-transform: uppercase; }

/* Линейка: 72px = 0…144 мм (1px = 2 мм).
   Мелкие деления — каждые 10 мм, крупные — каждые 50 мм.
   Красная полоса и метка показывают высоту печати (--h). */
.sq-card__scale {
  --h: 0px;
  margin-left: auto;
  width: 24px;
  height: 73px;
  position: relative;
  flex: none;
  border-right: 2px solid var(--sq-ink);
  background-image:
    repeating-linear-gradient(to top, var(--sq-ink) 0 1px, transparent 1px 25px),
    repeating-linear-gradient(to top, var(--sq-muted) 0 1px, transparent 1px 5px);
  background-size: 14px 100%, 7px 100%;
  background-position: right bottom, right bottom;
  background-repeat: no-repeat;
}
/* полоса высоты печати */
.sq-card__scale::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 4px; height: var(--h);
  background: var(--sq-accent);
  border-radius: 2px;
}
/* метка-риска на уровне высоты печати */
.sq-card__scale::before {
  content: "";
  position: absolute; left: 0; right: -2px;
  bottom: calc(var(--h) - 1px);
  height: 2px;
  background: var(--sq-accent);
}
.sq-card--36  .sq-card__scale { --h: 18px; }   /* 36 мм */
.sq-card--72  .sq-card__scale { --h: 36px; }   /* 72 мм */
.sq-card--141 .sq-card__scale { --h: 70.5px; } /* 141 мм */
.sq-card--dod .sq-card__scale { opacity: .45; }
.sq-card--dod .sq-card__scale::before,
.sq-card--dod .sq-card__scale::after { content: none; }

/* Заголовок H2 */
.sq-card h2 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 .6rem;
  color: var(--sq-ink);
  text-transform: none;
}
.sq-card p {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--sq-muted);
  margin: 0 0 1.1rem;
}

/* Список моделей — кнопки-ссылки */
.sq-card ul {
  list-style: none;
  margin: .25rem 0 0;          /* список сразу под текстом, без пустот */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sq-card li { margin: 0; padding: 0; }
.sq-card li::before { content: none !important; }
.sq-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .9rem;
  border-radius: 3px;
  background: var(--sq-bg-soft);
  color: var(--sq-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sq-card li a::after { content: "→"; color: var(--sq-accent); transition: transform .15s ease; }
.sq-card li a:hover, .sq-card li a:focus-visible { background: var(--sq-accent); color: #fff; }
.sq-card li a:hover::after, .sq-card li a:focus-visible::after { color: #fff; transform: translateX(3px); }
.sq-card li a:focus-visible { outline: 2px solid var(--sq-accent-dark); outline-offset: 2px; }

/* Карточка D.O.D — «скоро» */
.sq-card--dod { border-style: dashed; border-top-style: solid; border-top-color: var(--sq-muted); background: #fbfbfc; }
.sq-card--dod .sq-card__value { font-size: 2rem; }
.sq-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--sq-muted); background: var(--sq-bg-soft);
  padding: .25rem .55rem; border-radius: 3px;
}
.sq-card--dod li a { background: transparent; border: 1px solid var(--sq-line); }

/* ---------- Подсказка «Не знаете, какая высота нужна?» ---------- */
.sq-pick__hint {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--sq-bg-soft);
  border-left: 4px solid var(--sq-accent);
  border-radius: var(--sq-radius);
  padding: 1.1rem 1.4rem;
  margin: 0 0 2rem;
}
.sq-pick__hint p { margin: 0; flex: 1 1 22rem; line-height: 1.55; }
.sq-pick__hint strong { display: block; margin-bottom: .2rem; }
.sq-pick__btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 3px;
  background: var(--sq-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease;
}
.sq-pick__btn:hover, .sq-pick__btn:focus-visible { background: var(--sq-accent-dark); }

/* ---------- Текст под блоком ---------- */
.sq-pick__text { max-width: 60rem; line-height: 1.65; }
.sq-pick__text p { margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  .sq-card, .sq-card li a, .sq-card li a::after { transition: none; }
  .sq-card:hover { transform: none; }
}

/* ---------- Кнопка «Сравнить» в карточке ---------- */
.sq-card__compare {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem;
  font-size: .9rem; font-weight: 600;
  color: var(--sq-accent) !important;
  text-decoration: none !important;
}
.sq-card__compare::before {
  content: ""; width: 16px; height: 12px; flex: none;
  background:
    linear-gradient(currentColor 0 0) 0 100% / 4px 50% no-repeat,
    linear-gradient(currentColor 0 0) 6px 100% / 4px 100% no-repeat,
    linear-gradient(currentColor 0 0) 12px 100% / 4px 75% no-repeat;
}
.sq-card__compare:hover { text-decoration: underline !important; }

/* =========================================================
   Страница «Сравнение принтеров CoPilot»
   Отличия = <strong> внутри ячейки (кнопка B в редакторе)
   ========================================================= */
.sq-cmp { color: var(--sq-ink); margin: 0 0 2.5rem; }
.sq-cmp__lead { font-size: 1.125rem; line-height: 1.6; max-width: 60rem; margin: 0 0 1.25rem; }

.sq-cmp__toc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.sq-cmp__toc a {
  padding: .6rem 1rem; border: 1px solid var(--sq-line); border-radius: 3px;
  color: var(--sq-ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.sq-cmp__toc a:hover { border-color: var(--sq-accent); color: var(--sq-accent); }

.sq-cmp__section { margin: 0 0 3rem; scroll-margin-top: var(--sq-header-offset); }
.sq-cmp__section h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 1rem; text-transform: none; }

.sq-cmp__summary {
  background: var(--sq-bg-soft); border-left: 4px solid var(--sq-accent);
  border-radius: var(--sq-radius); padding: 1rem 1.4rem; margin: 0 0 1.25rem; max-width: 60rem;
}
.sq-cmp__summary p { margin: 0 0 .4rem; }
.sq-cmp__summary ul { margin: 0; padding-left: 1.1rem; }
.sq-cmp__summary li { margin: .25rem 0; line-height: 1.5; }

/* Прокрутка таблицы на телефоне, первая колонка закреплена */
.sq-cmp__scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sq-line); border-radius: var(--sq-radius);
}
.sq-cmp__scroll:focus-visible { outline: 2px solid var(--sq-accent); outline-offset: 2px; }
.sq-cmp__table {
  width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0;
  font-size: .93rem; line-height: 1.45; background: var(--sq-bg); margin: 0;
}
.sq-cmp__table caption {
  caption-side: top; text-align: left; padding: .9rem 1rem; font-weight: 600; color: var(--sq-muted);
}
.sq-cmp__table th, .sq-cmp__table td {
  padding: .75rem 1rem; border-top: 1px solid var(--sq-line); vertical-align: top; text-align: left;
}
.sq-cmp__table thead th {
  background: var(--sq-ink); color: #fff; border-top: 0; vertical-align: bottom;
  position: sticky; top: 0; z-index: 2;
}
.sq-cmp__table thead th a { color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; display: block; }
.sq-cmp__table thead th a:hover { color: #ffb3b6; text-decoration: underline; }
.sq-cmp__table thead th span { display: block; font-weight: 400; font-size: .8rem; color: #c6c9ce; margin-top: .15rem; }
.sq-cmp__table tbody th {
  font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--sq-muted); width: 190px;
}
/* закреплённая первая колонка */
.sq-cmp__table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--sq-bg); box-shadow: 1px 0 0 var(--sq-line); }
.sq-cmp__table thead th:first-child { background: var(--sq-ink); z-index: 3; }
.sq-cmp__table tbody tr:nth-child(even) td,
.sq-cmp__table tbody tr:nth-child(even) th { background: #fafbfb; }
.sq-cmp__table tbody tr:hover td, .sq-cmp__table tbody tr:hover th { background: #fff4f4; }

/* Отличия */
.sq-cmp__table td strong { color: var(--sq-accent); font-weight: 700; }

.sq-cmp__table ul { margin: 0; padding: 0; list-style: none; }
.sq-cmp__table li { margin: 0 0 .35rem; padding-left: 1.2rem; position: relative; }
.sq-cmp__table li::before { position: absolute; left: 0; font-weight: 700; }
.sq-cmp__pros li::before { content: "+"; color: #1f8a4c; }
.sq-cmp__cons td { color: var(--sq-muted); }
.sq-cmp__cons td::before { content: "− "; color: var(--sq-accent); font-weight: 700; }

/* Вопросы и ответы */
.sq-cmp__faq details {
  border: 1px solid var(--sq-line); border-radius: 3px; margin: 0 0 .6rem; max-width: 60rem; background: var(--sq-bg);
}
.sq-cmp__faq summary {
  cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; list-style: none; position: relative; padding-right: 2.5rem;
}
.sq-cmp__faq summary::-webkit-details-marker { display: none; }
.sq-cmp__faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font-size: 1.3rem; color: var(--sq-accent); }
.sq-cmp__faq details[open] summary::after { content: "−"; }
.sq-cmp__faq details p { margin: 0; padding: 0 1.1rem 1rem; line-height: 1.6; }

@media (max-width: 600px) {
  .sq-cmp__section h2 { font-size: 1.25rem; }
  .sq-cmp__table tbody th { width: 130px; }
}

/* ---------- Контакты: на телефоне сначала синий блок с контактами, потом карта ---------- */
@media (max-width: 767.98px) {
  .tab-content-contacts > .row > .col-md-6:last-child { order: -1; margin-bottom: 20px; }
}

/* =========================================================
   «Подбор по задаче» — /solutions.html (описание категории 9)
   ========================================================= */
.sq-tasks { margin: 0 0 2.5rem; }
.sq-tasks__lead { font-size: 1.125rem; line-height: 1.6; max-width: 60rem; margin: 0 0 1.75rem; }
.sq-tasks__group { margin: 0 0 1.75rem; scroll-margin-top: 110px; }
.sq-tasks__group h2 {
  font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #2b3e4f; margin: 0 0 .8rem; padding-left: 12px; border-left: 3px solid #c52121;
}
.sq-tasks__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 1100px) { .sq-tasks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .sq-tasks__grid { grid-template-columns: 1fr; } }
.sq-tasks__grid li { margin: 0; padding: 0; }
.sq-tasks__grid li::before { content: none !important; }
.sq-tasks__grid a {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 16px 40px 16px 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px;
  color: #000; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sq-tasks__grid a::after {
  content: "→"; position: absolute; right: 14px; top: 16px; color: #c52121; font-weight: 700; transition: transform .15s;
}
.sq-tasks__grid a:hover, .sq-tasks__grid a:focus-visible {
  border-color: #c52121; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); transform: translateY(-2px);
}
.sq-tasks__grid a:hover::after { transform: translateX(3px); }
.sq-tasks__grid strong { font-size: 15px; line-height: 1.3; font-weight: 700; }
.sq-tasks__grid span { font-size: 13px; line-height: 1.45; color: #5b6670; }
/* подсказка внизу использует стили .sq-pick__hint — даём ей переменные */
.sq-tasks { --sq-accent: #c52121; --sq-bg-soft: #f3f3f3; --sq-radius: 4px; }
.category-desc--bottom { margin-top: 2rem; }

/* ---------- Верхнее меню: все пункты в одну строку ---------- */
@media (min-width: 992px) {
  #horizontal-multilevel-menu > .nav-item { flex: 0 0 auto; padding-left: 6px; padding-right: 6px; }
  #horizontal-multilevel-menu > .nav-item > .nav-link { white-space: nowrap; }
  header .right-md { flex: 0 0 auto; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #horizontal-multilevel-menu { padding-left: 6px; padding-right: 8px; }
  #horizontal-multilevel-menu > .nav-item { padding-left: 3px; padding-right: 3px; }
  #horizontal-multilevel-menu > .nav-item > .nav-link { font-size: 10.5px; letter-spacing: 0; padding-left: 3px; padding-right: 3px; }
  #horizontal-multilevel-menu > li.item-109 > a::after { display: none; } /* стрелка у «Принтеры» — только на широких экранах */
}

/* Карточка D.O.D — снятые с поставки, предлагаем замену */
.sq-card--dod .sq-card__badge { color: #c52121; background: #fbeaea; }
.sq-card--dod p strong { color: #000; }
.sq-card__note { font-size: .85rem !important; line-height: 1.45; margin-top: -.5rem !important; }

/* Плашка «Модель снята с поставки» (страница JetLine) */
.sq-notice {
  margin: 0 0 24px; padding: 16px 20px; background: #fbeaea; border-left: 4px solid #c52121; border-radius: 4px;
  font-size: 15px; line-height: 1.55; color: #000;
}
.sq-notice a { color: #c52121; font-weight: 600; }
.sq-notice__link { display: inline-block; margin-top: 6px; }

/* =========================================================
   Технические характеристики в карточке товара (sq_specs.php)
   ========================================================= */
.sq-specs { margin: 0 0 1rem; }
.sq-specs__key {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 991px) { .sq-specs__key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sq-specs__key li {
  margin: 0; padding: 16px 16px 14px; background: #f3f3f3; border-top: 3px solid #c52121; border-radius: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.sq-specs__key li::before { content: none !important; }
.sq-specs__key-name { font-size: 10px; line-height: 1.3; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6670; }
.sq-specs__key strong { font-size: 17px; line-height: 1.3; font-weight: 700; color: #000; }
.sq-specs__key small { font-size: 12px; line-height: 1.4; color: #5b6670; }

.sq-specs__wrap { border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; }
.sq-specs__table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; line-height: 1.5; background: #fff; }
.sq-specs__table caption { caption-side: top; padding: 12px 16px; text-align: left; font-weight: 600; color: #5b6670; font-size: 13px; }
.sq-specs__table th, .sq-specs__table td { padding: 10px 16px; border-top: 1px solid #ececec; vertical-align: top; text-align: left; }
.sq-specs__table tbody tr:not(.sq-specs__group) th { width: 34%; font-weight: 600; color: #2b3e4f; }
.sq-specs__table tbody tr:not(.sq-specs__group):nth-child(odd) th,
.sq-specs__table tbody tr:not(.sq-specs__group):nth-child(odd) td { background: #fafafa; }
.sq-specs__group th {
  background: #2b3e4f !important; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 16px;
}
@media (max-width: 575px) {
  .sq-specs__table tbody tr:not(.sq-specs__group) { display: block; border-top: 1px solid #ececec; }
  .sq-specs__table tbody tr:not(.sq-specs__group) th,
  .sq-specs__table tbody tr:not(.sq-specs__group) td { display: block; width: auto; border: 0; }
  .sq-specs__table tbody tr:not(.sq-specs__group) th { padding-bottom: 0; font-size: 12px; }
  .sq-specs__table tbody tr:not(.sq-specs__group) td { padding-top: 2px; }
  .sq-specs__group { display: block; }
  .sq-specs__group th { display: block; }
}

/* ---------- «Два типа принтеров» на странице подбора ---------- */
.sq-types { margin: 2rem 0 0; scroll-margin-top: 110px; }
.sq-types h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 1rem; text-transform: none; }
.sq-types__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
@media (max-width: 767px) { .sq-types__grid { grid-template-columns: 1fr; } }
.sq-types__item {
  position: relative; padding: 22px 22px 18px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px;
}
.sq-types__item--main { border-top: 3px solid #c52121; }
.sq-types__item:not(.sq-types__item--main) { background: #fafafa; border-style: dashed; }
.sq-types__badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #c52121;
}
.sq-types__badge--off { background: #5b6670; }
.sq-types__item h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5rem; }
.sq-types__item p { font-size: .95rem; line-height: 1.55; margin: 0 0 .8rem; }
.sq-types__item a { color: #c52121; }
.sq-types__list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.sq-types__list li { position: relative; margin: 0 0 .45rem; padding-left: 1.4rem; font-size: .95rem; line-height: 1.45; }
.sq-types__list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.sq-types__list li.is-plus::before { content: "+"; color: #1f8a4c; }
.sq-types__list li.is-minus::before { content: "−"; color: #c52121; }
.sq-types__note { padding: 10px 12px; background: #fbeaea; border-left: 3px solid #c52121; border-radius: 3px; font-size: .9rem !important; margin: 0 !important; }

/* =========================================================
   Бейдж «GS1 | 2D» — модели с печатью кодов GS1 (GTIN, DataMatrix, Честный ЗНАК)
   Разметка: <span class="sq-gs1"><b>GS1</b><span>2D</span></span>
   ========================================================= */
.sq-gs1 {
  display: inline-flex; align-items: stretch; vertical-align: middle; flex: none;
  border-radius: 3px; overflow: hidden; white-space: nowrap;
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .03em; text-transform: uppercase;
}
.sq-gs1 > b { background: #c52121; color: #fff; padding: 4px 6px; font-weight: 700; }
.sq-gs1 > span { display: inline-block; background: #fff; color: #c52121; padding: 3px 6px; border: 1px solid #c52121; border-left: 0; border-radius: 0 3px 3px 0; }
.sq-badges { margin: -4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.sq-badges .sq-gs1 { font-size: 11px; }
/* кнопки моделей на странице подбора: бейдж прижат к стрелке */
.sq-card li a .sq-gs1 { margin-left: auto; margin-right: 6px; }
/* список моделей (info__item) */
.info__item .sq-gs1 { margin: 2px 0 6px; }
/* таблица сравнения: шапка */
.sq-cmp__table thead th .sq-gs1 { display: inline-flex; margin-top: 6px; }
.sq-cmp__table thead th .sq-gs1 > span { display: inline-block; color: #c52121; font-size: 10px; font-weight: 700; margin: 0; }
/* мега-меню: CSS-класс ссылки sq-gs1-link → бейдж рядом с названием */
@media (min-width: 992px) {
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a.sq-gs1-link { justify-content: flex-start; }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a.sq-gs1-link::before,
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a.sq-gs1-link::after {
    order: 2; opacity: 1; transform: none; position: static; width: auto;
    font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .03em; text-transform: uppercase; padding: 3px 5px;
  }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a.sq-gs1-link::before {
    content: "GS1"; margin-left: 8px; background: #c52121; color: #fff; border-radius: 3px 0 0 3px; border: 1px solid #c52121;
  }
  #horizontal-multilevel-menu li.item-109 .sub__menu .sub__menu a.sq-gs1-link::after {
    content: "2D"; order: 3; background: #fff; color: #c52121; border: 1px solid #c52121; border-left: 0; border-radius: 0 3px 3px 0;
  }
}

/* =========================================================
   «Печать в любом положении»
   ========================================================= */
.sq-orient {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin: 0 0 1.75rem; padding: 16px 20px; background: #fff; border: 1px solid #e5e5e5; border-left: 4px solid #017eba; border-radius: 4px;
}
.sq-orient__text { flex: 1 1 320px; font-size: 15px; line-height: 1.5; }
.sq-orient__text strong { display: block; font-size: 16px; margin-bottom: 2px; }
.sq-orient__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.sq-orient__list li { margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #2b3e4f; }
.sq-orient__list li::before { content: none !important; }
.sq-orient__list svg { width: 44px; height: 44px; }
/* главная: пункт преимуществ */
.ul__preim-7:before {
  content: ''; position: absolute; left: 0; width: 60px; height: 60px; background-size: contain !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017eba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='2.5' width='7' height='7' rx='1.5'/%3E%3Cpath d='M9.5 6h10m-2.5-2.5L19.5 6 17 8.5'/%3E%3Cpath d='M6 9.5v10m-2.5-2.5L6 19.5 8.5 17'/%3E%3Cpath d='M9.5 9.5l9 9m-4 0h4v-4'/%3E%3C/svg%3E") no-repeat;
}
@media (min-width: 1200px) { .sq-specs__key { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* =========================================================
   «Преимущества <модель>» в карточке товара (sq_advantages.php)
   ========================================================= */
.sq-adv { padding-top: 40px; padding-bottom: 40px; }
.sq-adv__title { margin: 0 0 28px; }
.sq-adv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .sq-adv__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .sq-adv__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sq-adv__list li {
  margin: 0; padding: 20px 16px 18px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.sq-adv__list li::before { content: none !important; }
.sq-adv__list li:hover { border-color: #017eba; box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.sq-adv__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: #eef6fb; }
.sq-adv__icon svg { width: 28px; height: 28px; }
.sq-adv__list strong { font-size: 16px; line-height: 1.3; font-weight: 700; color: #000; }
.sq-adv__text { font-size: 13px; line-height: 1.45; color: #5b6670; }

.sq-adv .sq-orient { margin: 20px 0 0; }

/* Главная: пункты преимуществ не разрываются между двумя колонками */
.ul__preim li { break-inside: avoid; page-break-inside: avoid; -webkit-column-break-inside: avoid; }
/* Главная: преимущества — явные две колонки: первые 4 пункта слева, остальные справа */
@media (min-width: 768px) {
  .ul__clear.ul__preim { column-count: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 40px; row-gap: 25px; }
  .ul__clear.ul__preim li { margin-bottom: 0 !important; }
}
/* Главная: 8-й пункт преимуществ — коды Честный ЗНАК / GS1 */
.ul__preim-8:before {
  content: ''; position: absolute; left: 0; width: 60px; height: 60px; background-size: contain !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017eba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3h-3zM20 17v4h-3M14 20.5h.5'/%3E%3C/svg%3E") no-repeat;
}

/* =========================================================
   FAQ (/faq.html)
   ========================================================= */
.sq-faq { --sq-accent: #c52121; --sq-bg-soft: #f3f3f3; --sq-radius: 4px; max-width: 900px; margin: 0 0 2.5rem; }
.sq-faq__lead { font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.25rem; }
.sq-faq__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.sq-faq__toc a { padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 3px; color: #000; font-weight: 600; font-size: 14px; text-decoration: none; }
.sq-faq__toc a:hover { border-color: #c52121; color: #c52121; }
.sq-faq__group { margin: 0 0 2rem; scroll-margin-top: 110px; }
.sq-faq__group h2 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #2b3e4f; margin: 0 0 .8rem; padding-left: 12px; border-left: 3px solid #c52121; }
.sq-faq details { border: 1px solid #e5e5e5; border-radius: 4px; margin: 0 0 8px; background: #fff; transition: border-color .15s; }
.sq-faq details[open] { border-color: #c52121; }
.sq-faq summary { cursor: pointer; list-style: none; position: relative; padding: 16px 52px 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.sq-faq summary::-webkit-details-marker { display: none; }
.sq-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #c52121; }
.sq-faq details[open] summary::after { content: "−"; }
.sq-faq summary:hover { color: #c52121; }
.sq-faq__a { padding: 0 18px 16px; font-size: 15px; line-height: 1.65; }
.sq-faq__a p { margin: 0 0 .6rem; }
.sq-faq__a ul { margin: 0 0 .6rem; padding-left: 0; list-style: none; }
.sq-faq__a li { position: relative; padding-left: 18px; margin: 0 0 .4rem; }
.sq-faq__a li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #c52121; }
.sq-faq__a strong { color: #000; }

/* =========================================================
   «Squid Ink в цифрах» — вместо фото здания в блоке «О нас» (главная и /o-nas.html)
   ========================================================= */
.sq-facts2 { min-height: 450px; padding: 24px 125px 24px 24px; background: #f3f3f3; display: flex; flex-direction: column; justify-content: center; }
.sq-facts2__title { font-size: 11px !important; line-height: 1.3 !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3e4f; margin: 0 0 12px !important; padding-left: 10px; border-left: 3px solid #c52121; }
.sq-facts2__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sq-facts2__list li { margin: 0; padding: 0; }
.sq-facts2__list li::before { content: none !important; }
.sq-facts2__list a, .sq-facts2__list div { display: flex; flex-direction: column; gap: 4px; height: 100%; background: #fff; border-radius: 4px; border-top: 3px solid #c52121; padding: 14px 14px 12px; color: #000; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s; }
.sq-facts2__list a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .1); text-decoration: none; }
.sq-facts2__list strong { font-size: 26px; line-height: 1.05; font-weight: 800; color: #c52121; letter-spacing: -.02em; }
.sq-facts2__list span { font-size: 12px; line-height: 1.35; color: #2b3e4f; font-weight: 600; }
.sq-facts2__list a span::after { content: " →"; color: #c52121; }
@media (max-width: 767px) { .sq-facts2 { padding: 20px; min-height: 0; } .sq-facts2__list strong { font-size: 22px; } }
