/* ==========================================================================
   Каталог кресел — минимальный CSS, поверх шаблона погрузчик.рф
   Шрифт и типографика наследуются от сайта (НЕ задаём font-family).
   Используем префикс .kr- чтобы не конфликтовать с существующими стилями.
   ========================================================================== */

.kr-sect { color: #2c2c2c; }
.kr-sect *, .kr-sect *::before, .kr-sect *::after { box-sizing: border-box; }
.kr-sect img { max-width: 100%; height: auto; display: block; }
.kr-sect .kr-product__media img {
  height: 100% !important;
  object-fit: cover;
}
.kr-sect a { color: #14314f; text-decoration: none; transition: color .2s; }
.kr-sect a:hover { color: #e53935; }
.kr-sect ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.kr-sect ul li { margin-bottom: 8px; }

/* ====== Типографика заголовков (поверх дефолта битрикса) ====== */
.kr-sect article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #002d4f;
  margin: 28px 0 14px;
  line-height: 1.3;
}
.kr-sect article h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 22px 0 10px;
  line-height: 1.35;
}
.kr-sect article p { font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.kr-sect article h2:first-child,
.kr-sect article h3:first-child { margin-top: 0; }

/* ====== Модальное окно заявки ====== */
.kr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.kr-modal.is-open { display: flex; }
.kr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 28, .55);
}
.kr-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 26px 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  max-height: calc(100vh - 40px);
  overflow: auto;
}
body.kr-modal-lock { overflow: hidden; }
button.kr-hero__btn {
  cursor: pointer;
  font-family: inherit;
}
a.kr-hero__btn,
button.kr-hero__btn {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  line-height: 1.15 !important;
  padding: 0 40px !important;
  margin: 0 !important;
  border: none !important;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}
.kr-order-form__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #8a97a3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.kr-order-form__close:hover { background: #e8eaed; color: #002d4f; }
.kr-order-form__title {
  font-size: 17px;
  font-weight: 600;
  color: #002d4f;
  margin-bottom: 12px;
  padding-right: 34px;
}
.kr-order-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kr-order-form__fields .message-input,
.kr-order-form__fields .kr-order-form__btn,
.kr-order-form__fields .kr-order-form__note { grid-column: 1 / -1; }
.kr-order-form__fields input,
.kr-order-form__fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.kr-order-form__fields input:focus,
.kr-order-form__fields textarea:focus {
  outline: none;
  border-color: #002d4f;
}
.kr-order-form__fields textarea { min-height: 74px; resize: vertical; }
.kr-order-form__btn {
  justify-self: start;
  border: none;
  cursor: pointer;
  background: #e53935;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
}
.kr-order-form__btn:hover { background: #c62828; }
.kr-order-form__note {
  font-size: 11.5px;
  color: #8a97a3;
  line-height: 1.4;
}
.kr-order-form__ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
.kr-order-form__err {
  background: #fdecea;
  border: 1px solid #f5b7b1;
  color: #b71c1c;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
/* honeypot — скрыт от людей, виден ботам */
.kr-order-form__trap {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}
@media (max-width: 600px) { .kr-order-form__fields { grid-template-columns: 1fr; } }

/* ====== Строка "Также в каталоге" ====== */
.kr-also {
  font-size: 14px;
  color: #545862;
  margin: 10px 0 0;
}
.kr-also a { color: #e53935; font-weight: 600; }
.kr-also a:hover { text-decoration: underline; }

/* ====== Блок выбора материала (ПВХ vs ткань) ====== */
.kr-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 700px) { .kr-choose { grid-template-columns: 1fr; } }
.kr-choose__col {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #002d4f;
  border-radius: 10px;
  padding: 18px 20px 16px;
  background: #fff;
}
.kr-choose__col--pvh { border-top-color: #002d4f; }
.kr-choose__col--tkan { border-top-color: #e53935; }
.kr-choose__title {
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 10px;
}
.kr-choose__col ul { margin-bottom: 12px; }
.kr-choose__link {
  font-size: 14px;
  font-weight: 600;
  color: #e53935;
  text-decoration: none;
}
.kr-choose__link:hover { text-decoration: underline; }

/* ====== Hero главной /kresla/ (минимализм, стиль ВИ) ====== */
.kr-hero {
  display: flex;
  gap: 44px;
  align-items: center;
  padding: 54px 56px;
  margin: 6px 0 0;
  background: #0f131c;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .kr-hero { flex-direction: column; text-align: center; padding: 32px 22px; } }
.kr-hero__left { flex: 1 1 auto; position: relative; z-index: 1; }
@media (max-width: 900px) { .kr-hero__left { flex: none; width: 100%; } }
.kr-hero__left h1 {
  font-size: 58px;
  font-weight: 300;
  color: #fff;
  line-height: 1.14;
  margin: 0 0 18px;
}
@media (max-width: 1200px) { .kr-hero__left h1 { font-size: 48px; } }
@media (max-width: 600px) { .kr-hero__left h1 { font-size: 30px; } }
.kr-hero__mark { position: relative; white-space: nowrap; color: #fff; }
.kr-hero__mark::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 3px;
  height: 12px;
  background: #e53935;
  opacity: .9;
  border-radius: 2px;
  z-index: -1;
}
.kr-hero__sub {
  color: #c9d6e2;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 30px;
  max-width: 500px;
}
@media (max-width: 900px) { .kr-hero__sub { margin-left: auto; margin-right: auto; } }
.kr-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 900px) { .kr-hero__actions { justify-content: center; } }
.kr-hero__btn {
  border-radius: 8px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  padding: 0 40px !important;
  height: 58px !important;
  min-height: 58px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
}
.kr-hero__btn--white {
  background: #fff !important;
  color: #0f131c !important;
  border: none;
  font-weight: 600;
}
.kr-hero__btn--white:hover { background: #e4e9ef !important; color: #0f131c !important; }
.kr-hero__btn--accent {
  background: #e53935 !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.kr-hero__btn--accent:hover { background: #c62828 !important; color: #fff !important; }
.kr-hero__phone {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 2px;
}
.kr-hero__phone:hover { color: #ffb4ab; border-color: #ffb4ab; }
.kr-hero__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}
@media (max-width: 900px) { .kr-hero__mini { justify-content: center; } }
.kr-hero__mini span {
  font-size: 13px;
  color: #a8bccd;
  white-space: nowrap;
}
/* Кресло крупное, уходит за нижний край (как на референсе) */
.kr-hero__right {
  flex: 0 0 46%;
  max-width: 540px;
  position: relative;
  z-index: 1;
  align-self: stretch;
}
@media (max-width: 1000px) { .kr-hero__right { flex: 0 0 360px; } }
@media (max-width: 900px) { .kr-hero__right { flex: none; width: 100%; max-width: 400px; margin: 0 auto; align-self: auto; } }
.kr-hero__right img {
  width: 100%;
  display: block;
  margin-bottom: -14%;       /* низ кресла обрезается краем блока */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}
@media (max-width: 900px) { .kr-hero__right img { margin-bottom: 0; } }

/* ====== Шапка бренда (лого + H1 + интро) ====== */
.kr-brand-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 24px;
  margin: 20px 0;
}
@media (max-width: 768px) { .kr-brand-head { flex-direction: column; gap: 14px; } }
.kr-brand-head__logo {
  flex: 0 0 160px;
  height: 90px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
@media (max-width: 768px) { .kr-brand-head__logo { flex: none; width: 160px; } }
.kr-brand-head__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kr-brand-head__info h1 {
  font-size: 26px;
  font-weight: 300;
  margin: 0 0 10px;
  line-height: 1.25;
  color: #2c2c2c;
}
.kr-brand-head__info p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #444;
}

/* Популярные модели техники бренда */
.kr-brand-models {
  margin: 0 0 22px;
}
.kr-brand-models__label {
  font-size: 13px;
  font-weight: 600;
  color: #545862;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.kr-brand-models__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ====== Сетка брендов 6×3 (как brands-error-grid с /kody-oshibok/) ====== */
.kr-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin: 20px 0;
}
@media (max-width: 1200px) { .kr-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .kr-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .kr-brands-grid { grid-template-columns: repeat(2, 1fr); } }

.kr-brand-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 155px;
}
.kr-brand-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: #e53935;
}
.kr-brand-card__logo {
  width: 80px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.kr-brand-card__logo img {
  max-width: 80px;
  max-height: 48px;
  object-fit: contain;
}
.kr-brand-card__title {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.kr-brand-card__desc {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}
.kr-brand-card__hint {
  font-size: 10px;
  color: #e53935;
  font-weight: bold;
  margin-top: auto;
}

/* ====== Сетка категорий (как services-grid с /remont/) ====== */
.kr-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}
@media (max-width: 1200px) { .kr-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .kr-cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .kr-cats-grid { grid-template-columns: 1fr; } }

/* Двухколоночная сетка категорий (тип техники / материал) */
.kr-cats-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .kr-cats-grid--two { grid-template-columns: 1fr; } }
.kr-cats-grid--two .kr-cat-card { flex-direction: row; align-items: stretch; }
.kr-cats-grid--two .kr-cat-card__img { flex: 0 0 220px; height: auto; min-height: 170px; }
@media (max-width: 768px) { .kr-cats-grid--two .kr-cat-card { flex-direction: column; } .kr-cats-grid--two .kr-cat-card__img { flex: none; } }
.kr-cats-grid--two .kr-cat-card__body { display: flex; flex-direction: column; align-items: flex-start; }
.kr-cats-grid--two .kr-cat-card__count { margin-top: auto; }

.kr-cat-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.kr-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 45, 79, 0.12);
  border-color: #002d4f;
  color: #333;
}
.kr-cat-card__img {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.kr-cat-card__img-icon {
  font-size: 20px;
  font-weight: 600;
  color: #002d4f;
  background: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #002d4f;
  letter-spacing: 1px;
}
.kr-cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.kr-cat-card:hover .kr-cat-card__img img { transform: scale(1.03); }
.kr-cat-card__body { padding: 14px 16px; }
.kr-cat-card__body h3 {
  font-size: 16px;
  color: #2c2c2c;
  margin: 0 0 6px;
  font-weight: bold;
}
.kr-cat-card__body p {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin: 0 0 8px;
}
.kr-cat-card__count {
  font-size: 12px;
  color: #e53935;
  font-weight: bold;
}

/* ====== Сетка товаров (карточки кресел) ====== */
.kr-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
  align-items: stretch !important;
}
@media (max-width: 1200px) { .kr-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .kr-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .kr-products-grid { grid-template-columns: 1fr; } }

.article-box .kr-products-grid > .kr-product,
.kr-sect .kr-products-grid > .kr-product,
.kr-products-grid > .kr-product {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100%;
  align-self: stretch !important;
  float: none !important;
}
.kr-sect a.kr-product__link,
a.kr-product__link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100%;
}
.kr-product:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: #e53935;
}
.kr-product__media {
  position: relative;
  height: 200px;
  flex: 0 0 200px;
  background: #f8f9fa;
  overflow: hidden;
}
.kr-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.kr-product:hover .kr-product__media img { transform: scale(1.04); }
.kr-product__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}
.kr-product__badge--dark { background: #545862; }
.kr-product__body {
  padding: 14px;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
.kr-product__art {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.kr-product__title {
  font-size: 15px;
  font-weight: bold;
  color: #2c2c2c;
  margin: 0 0 10px;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kr-product__title a { color: inherit; }
.kr-product__title a:hover { color: #e53935; }
.kr-product__props {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  flex: 1 1 auto;
  line-height: 1.5;
  min-height: 6.6em;
}
.kr-product__props span { display: block; margin-bottom: 3px; }
.kr-product__props span strong { color: #333; }
.kr-product__props span:last-child {
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kr-product__materials {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: auto 0 0;
}
.kr-product__stock,
.kr-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kr-product__stock {
  margin-top: 8px;
  min-height: 22px;
}
.kr-product__stock-text,
.kr-stock__status {
  color: #2e7d32;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.kr-stock {
  margin-top: 8px;
}
.kr-stock-ticks,
.kr-stock__ticks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 8px;
}
.kr-stock-ticks i,
.kr-stock__ticks i {
  display: block;
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: #2e7d32;
}
.kr-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
  font-weight: 600;
}
.kr-product__footer {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto !important;
  padding: 12px 14px 14px;
  border-top: 1px solid #f0f0f0;
  flex: 0 0 auto !important;
}
.kr-product__price {
  font-size: 16px;
  color: #e53935;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #e53935;
  border-radius: 50px;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  height: 40px;
  box-sizing: border-box;
  flex: 1 1 auto;
}
.kr-product__price:hover {
  background: #fff5f5;
}
.kr-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #545862;
  color: #fff !important;
  padding: 0 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background .2s;
  height: 40px;
  box-sizing: border-box;
  white-space: nowrap;
  flex: 0 0 auto;
}
.kr-btn-small:hover { background: #3f434b; color: #fff !important; }

/* ====== Карточка товара (детальная) ====== */
.kr-product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0 30px;
}
@media (max-width: 900px) { .kr-product-top { grid-template-columns: 1fr; } }

.kr-gallery { display: flex; flex-direction: column; gap: 10px; }
.kr-gallery__main {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  aspect-ratio: 1;
  overflow: hidden;
}
.kr-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.kr-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kr-gallery__thumb {
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kr-gallery__thumb:hover, .kr-gallery__thumb.is-active { border-color: #e53935; }

.kr-info h1 {
  font-size: 26px;
  font-weight: 300;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #2c2c2c;
}
.kr-info .kr-art {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}
.kr-info .kr-art strong { color: #14314f; }

.kr-props {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.kr-props h3 {
  font-size: 13px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #2c2c2c;
  font-weight: bold;
}
.kr-props dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 16px;
  font-size: 14px;
  margin: 0;
}
.kr-props dt { color: #666; }
.kr-props dd { color: #2c2c2c; font-weight: 600; margin: 0; }

.kr-materials { margin-bottom: 18px; }
.kr-materials h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #2c2c2c;
}
.kr-materials .options { display: flex; gap: 10px; }
.kr-materials label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 14px;
  color: #2c2c2c;
}
.kr-materials input { accent-color: #e53935; }
.kr-materials label:hover { border-color: #e53935; }
.kr-materials label:has(input:checked) {
  border-color: #e53935;
  background: #fff5f5;
}
.kr-materials label:has(input:checked) span { font-weight: bold; color: #e53935; }

.kr-compat {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #2c2c2c;
}
.kr-compat strong { color: #2e7d32; }

.kr-price {
  background: #f8f9fa;
  padding: 20px 22px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.kr-price .lbl { font-size: 13px; color: #666; margin-bottom: 4px; }
.kr-price .price {
  font-size: 22px;
  font-weight: bold;
  color: #14314f;
  margin-bottom: 4px;
}
.kr-price .note { font-size: 13px; color: #666; }

.kr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ====== Табы ====== */
.kr-tabs { margin: 24px 0; }
.kr-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.kr-tabs__btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.kr-tabs__btn:hover { color: #e53935; }
.kr-tabs__btn.is-active { color: #e53935; border-color: #e53935; font-weight: bold; }
.kr-tabs__panel { display: none; line-height: 1.7; font-size: 15px; }
.kr-tabs__panel.is-active { display: block; }
.kr-tabs__panel h3 {
  color: #2c2c2c;
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: bold;
}
.kr-tabs__panel h3:first-child { margin-top: 0; }
.kr-tabs__panel p { margin: 0 0 14px; }
.kr-tabs__panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.kr-tabs__panel table th, .kr-tabs__panel table td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.kr-tabs__panel table th { background: #f8f9fa; font-weight: bold; }
.kr-tabs__panel table tr:nth-child(even) td { background: #fafafa; }

/* ====== CTA / FAQ / Помощь (как на /kody-oshibok/) ====== */
.kr-cta {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin: 28px 0;
  text-align: center;
}
.kr-cta h2 { margin-top: 0; color: #e53935; }

.kr-faq { margin: 20px 0; }
.kr-faq__item {
  background: #f8f9fa;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.kr-faq__item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #2c2c2c;
  font-weight: bold;
}
.kr-faq__item p { margin: 0; font-size: 14px; }

.kr-help {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}
.kr-help h2 { margin-top: 0; }
.kr-help ul { margin: 10px 0; }

.kr-brand-links {
  margin: 56px 0 8px;
  padding: 0;
  background: transparent;
}
.kr-brand-links h2 { display: none; }
.kr-brand-links p { display: none; }
.kr-brand-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kr-brand-links__row a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #002d4f;
  text-decoration: none;
  line-height: 1.2;
}
.kr-brand-links__row a:hover {
  border-color: #e53935;
  color: #e53935;
}
.kr-brand-links__all {
  background: #002d4f !important;
  border-color: #002d4f !important;
  color: #fff !important;
}
.kr-brand-links__all:hover {
  background: #e53935 !important;
  border-color: #e53935 !important;
  color: #fff !important;
}

.kr-related {
  margin: 40px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #eef0f3;
}
.kr-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.kr-related h2,
.kr-related__head h2 {
  font-size: 18px;
  margin: 0;
  color: #002d4f;
  font-weight: 600;
}
.kr-related__head a {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.kr-related__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1200px) { .kr-related__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kr-related__grid { grid-template-columns: 1fr 1fr; } }
.kr-related__item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #2c2c2c;
  min-width: 0;
}
.kr-related__item:hover {
  border-color: #002d4f;
  color: #002d4f;
}
.kr-sect .kr-related__item img {
  height: 88px !important;
  object-fit: cover;
}
.kr-related__name {
  display: block;
  padding: 8px 8px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.kr-related__avail {
  display: block;
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #2e7d32;
}
.kr-related__item span {
  display: block;
}
.kr-related__more {
  display: none;
}

/* ====== Блок сертификатов (отдельно от галереи) ====== */
.kr-certs {
  margin: 24px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}
.kr-certs h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #2c2c2c;
  font-weight: bold;
}
.kr-certs__list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.kr-certs__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  color: #2c2c2c;
  transition: all 0.2s;
}
.kr-certs__item:hover {
  border-color: #e53935;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.kr-certs__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.kr-certs__item span {
  font-size: 13px;
  font-weight: 600;
}

/* ====== Блок ссылок на вариант кресла (ПВХ/ткань) ====== */
.kr-variant-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #c62828;
  text-decoration: none;
  transition: all 0.2s;
}
.kr-variant-link:hover {
  background: #ffebee;
  border-color: #e53935;
  color: #c62828;
}
.kr-variant-link strong { color: #c62828; }

/* ====== Компактный блок цены (как vseinstrumenty) ====== */
.kr-buy-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.kr-buy-box__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kr-buy-box__price {
  font-size: 24px;
  font-weight: bold;
  color: #2c2c2c;
  line-height: 1.1;
}
.kr-buy-box__hint {
  font-size: 12px;
  color: #888;
}
.kr-buy-box__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* «Запросить цену» — красная рамка для заметности */
.kr-buy-box__actions .btn-white {
  border: 2px solid #e53935 !important;
  color: #e53935 !important;
  background: #fff !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}
.kr-buy-box__actions .btn-white:hover {
  background: #e53935 !important;
  color: #fff !important;
}
@media (max-width: 600px) {
  .kr-buy-box { flex-direction: column; align-items: stretch; }
  .kr-buy-box__actions { width: 100%; }
  .kr-buy-box__actions .btn { flex: 1; justify-content: center; }
}

/* ====== Информационные плашки (доставка/монтаж/гарантия) ====== */
.kr-info-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}
@media (max-width: 768px) { .kr-info-badges { grid-template-columns: repeat(2, 1fr); } }
.kr-info-badge {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}
.kr-info-badge b { display: block; color: #2c2c2c; font-size: 13px; margin-bottom: 4px; }

/* ====== Компактные плитки ПВХ / ткань ====== */
.kr-mats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 28px;
}
@media (max-width: 640px) { .kr-mats { grid-template-columns: 1fr; } }
.kr-mat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  text-decoration: none;
  color: #2c2c2c;
  transition: border-color .2s, box-shadow .2s;
}
.kr-mat:hover {
  border-color: #002d4f;
  box-shadow: 0 4px 14px rgba(0,45,79,.08);
  color: #2c2c2c;
}
.kr-mat__img {
  flex: 0 0 92px;
  width: 92px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f5f7;
}
.kr-mat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kr-mat__body h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.kr-mat__body p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #66707a;
  line-height: 1.3;
}
.kr-mat__body span {
  font-size: 12px;
  color: #e53935;
  font-weight: 600;
}

/* ====== Сетка брендов в категории (плитки) ====== */
.kr-cat-brands-wrap {
  display: block;
  margin: 48px 0 0;
}
.kr-cat-brands-wrap h2 {
  margin: 0 0 14px;
}
.kr-cat-brands-wrap + .kr-cat-brands-wrap { margin-top: 36px; }
.kr-cat-brands {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px;
  margin: 0;
  width: 100%;
}
@media (max-width: 1200px) { .kr-cat-brands { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 768px)  { .kr-cat-brands { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 480px)  { .kr-cat-brands { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.kr-cat-brand {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none !important;
  color: #2c2c2c;
  transition: all 0.3s ease;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
}
.kr-cat-brand:hover {
  box-shadow: 0 6px 18px rgba(0,45,79,0.12);
  transform: translateY(-3px);
  border-color: #002d4f;
  color: #2c2c2c;
}
.kr-cat-brand__logo {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 6px 10px;
}
.kr-cat-brand__logo img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}
.kr-cat-brand:hover .kr-cat-brand__logo img {
  filter: grayscale(0%);
  opacity: 1;
}
.kr-cat-brand__title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.3;
}

/* ====== Подборки (ПВХ/ткань) плитками ====== */
.kr-collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 768px) { .kr-collections { grid-template-columns: 1fr; } }
.kr-collection {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #2c2c2c;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kr-collection:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: #e53935;
}
.kr-collection__icon {
  font-size: 32px;
  flex-shrink: 0;
}
.kr-collection__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: #2c2c2c;
}
.kr-collection__desc {
  font-size: 12px;
  color: #888;
}
