/* Водяной знак ROLLSKRAN (шрифт Zebulon) на всех конфигураторах подбора.
   Слой не перехватывает клики: pointer-events: none. */
@font-face {
  font-family: 'Zebulon';
  src: url('../fonts/Zebulon.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.rk-wm-layer {
  position: absolute;
  inset: -20%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 108px;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 60;
  transform: rotate(-24deg);
  transform-origin: center center;
}

.rk-wm-mark {
  font-family: 'Zebulon', 'SF Pro Display', -apple-system, sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #1d1d1f;
  opacity: 0.07;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.rk-wm-badge {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 6px 12px;
  border: 1px solid rgba(29, 29, 31, 0.10);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  color: #707070;
  font: 400 11px/1.2 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk-wm-badge .rk-wm-logo {
  font-family: 'Zebulon', -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #1d1d1f;
}

.rk-wm-badge .rk-wm-sep { color: #b9b9b2; }

/* На странице-лаунчере: фиксированный слой под карточками и бейдж внизу справа */
.rk-wm-fixed {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  user-select: none;
  z-index: 40;
  opacity: 0.9;
}

.rk-wm-badge--fixed {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 2147483000;
}

@media (max-width: 640px) {
  .rk-wm-mark { font-size: 22px; }
  .rk-wm-layer { grid-auto-rows: 84px; }
  .rk-wm-badge {
    right: 8px;
    bottom: 6px;
    max-width: calc(100% - 16px);
    padding: 5px 10px;
    gap: 6px;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    border-radius: 12px;
    align-items: flex-start;
  }
  .rk-wm-badge .rk-wm-logo { font-size: 12px; }
  .rk-wm-badge .rk-wm-text { display: block; }
}

/* Широкий логотип ROLLSKRAN в окне с 3D — так же, как в конфигураторах
   консольных кранов: оригинальный wordmark во всю ширину окна 3D,
   полупрозрачный, не перехватывает клики. */
.rk-cfg-out { position: relative; }
.rk-r3d-host { position: relative; }

.rk-wm-3d {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.rk-wm-3d-mark {
  width: 96%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
  aspect-ratio: 1679.83 / 155;
  background: #79858c;
  opacity: 0.16;
  -webkit-mask: url('logo.svg') center top / 100% auto no-repeat;
  mask: url('logo.svg') center top / 100% auto no-repeat;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 700px) {
  .rk-wm-3d-mark { opacity: 0.14; width: 94%; }
}

/* Логотип на лендинге конфигураторов */
.rk-wm-hero {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.rk-wm-hero .rk-wm-3d-mark { max-width: 1600px; opacity: 0.14; }
@media (max-width: 900px) {
  .rk-wm-hero .rk-wm-3d-mark { opacity: 0.12; }
}

/* Подсказка управления 3D-моделью внутри окна конфигуратора */
.rk-r3d-host .rk-wm-3d-hint,
.rk-cfg-out .rk-wm-3d-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 7;
  margin: 0;
  padding: 5px 10px;
  max-width: calc(100% - 150px);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #5b666d;
  font: 400 12px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 700px) {
  .rk-r3d-host .rk-wm-3d-hint,
  .rk-cfg-out .rk-wm-3d-hint {
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    max-width: calc(100% - 24px);
    font-size: 11px;
  }
}

/* Плашка внутри диалога конфигуратора: в потоке под сноской, чтобы текст не накладывался */
dialog.rk-cfg-dialog > .rk-wm-badge,
dialog.rk-wcfg-dialog > .rk-wm-badge {
  position: static;
  margin: 6px 14px 10px auto;
  width: max-content;
  max-width: calc(100% - 28px);
}
@media (max-width: 700px) {
  dialog.rk-cfg-dialog > .rk-wm-badge,
  dialog.rk-wcfg-dialog > .rk-wm-badge {
    margin: 6px 8px 10px auto;
    max-width: calc(100% - 16px);
  }
}
/* Плашка на лендинге — в потоке футера, не поверх текста */
.k1l-footer__inner > .rk-wm-badge--footer {
  position: static;
  display: inline-flex;
  margin: 10px 0 0 auto;
}

