/* Promotions — light white + navy (match withdraw / mission) */
.promo-kz {
  --pk-primary: #2d6fb8;
  --pk-primary-dark: #1e4f8c;
  --pk-bg: #ffffff;
  --pk-surface: #ffffff;
  --pk-surface-2: #f7f9fc;
  --pk-border: #e8edf4;
  --pk-text: #243247;
  --pk-muted: #7a8799;
  --pk-hot: #e53935;
  background: var(--pk-bg) !important;
  min-height: 100vh;
  color: var(--pk-text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding-bottom: 88px;
  -webkit-font-smoothing: antialiased;
}

.promo-kz * { box-sizing: border-box; }

.promo-kz__appbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: stretch;
  height: 48px;
  padding: 0 4px 0 2px;
  background: #fff;
  border-bottom: 1px solid var(--pk-border);
}

.promo-kz__back {
  width: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pk-primary-dark);
  text-decoration: none;
  font-size: 15px;
}

.promo-kz__tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.promo-kz__tabs::-webkit-scrollbar { display: none; }

.promo-kz__tab {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--pk-muted);
  text-decoration: none;
  white-space: nowrap;
}

.promo-kz__tab.is-active {
  color: var(--pk-primary-dark);
  font-weight: 500;
}
.promo-kz__tab.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: var(--pk-primary);
}

.promo-kz__tab-badge { display: none; }

.promo-kz__layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100vh - 134px);
}

.promo-kz__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 134px);
  overflow-y: auto;
  padding: 10px 8px 14px;
  background: #eef3f9;
  border-right: 1px solid var(--pk-border);
  scrollbar-width: none;
}
.promo-kz__side::-webkit-scrollbar { display: none; }

/* Horizontal row: icon left + text right (text column visible on left) */
.promo-kz__cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  color: var(--pk-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
  border: 0;
  transition: background 0.15s, color 0.15s;
}
.promo-kz__cat:active { opacity: 0.92; }

.promo-kz__cat-item {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: none !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.promo-kz__cat-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.promo-kz__ico-img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
  filter: none;
  pointer-events: none;
}

.promo-kz__cat-name {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
  text-align: left;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}

.promo-kz__ico,
.promo-kz__ico--sm {
  width: 14px;
  height: 14px;
  display: inline-block;
  filter: none;
  color: var(--pk-primary);
  flex-shrink: 0;
}

.promo-kz__cat.is-active {
  color: #fff;
  background: var(--pk-primary);
  box-shadow: none;
}

.promo-kz__cat.is-active .promo-kz__cat-item {
  background-image: none !important;
}

.promo-kz__cat.is-active .promo-kz__cat-name {
  color: #fff;
  font-weight: 500;
}

.promo-kz__cat.is-active .promo-kz__ico-img {
  filter: brightness(0) invert(1);
}

.promo-kz__side-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 4px;
}

.promo-kz__side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--pk-primary);
  background: #fff;
  color: var(--pk-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.promo-kz__side-btn:active { opacity: 0.88; }

.promo-kz__main {
  min-width: 0;
  max-height: calc(100vh - 134px);
  overflow-y: auto;
  padding: 12px 12px 20px;
  scrollbar-width: thin;
  background: transparent;
}

.promo-kz__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-kz__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--pk-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
}
.promo-kz__card:active { opacity: 0.96; }

.promo-kz__hot {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: auto;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--pk-hot);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transform: none;
  box-shadow: none;
}

.promo-kz__code {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pk-text);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.promo-kz__card-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0;
}

.promo-kz__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: var(--pk-surface-2);
}
.promo-kz__thumb img {
  width: 100%;
  height: 100%;

  display: block;
}

.promo-kz__meta {
  min-width: 0;
  padding: 12px 12px 14px;
  background: #fff;
  border-top: 1px solid var(--pk-border);
}
.promo-kz__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--pk-text);
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-kz__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--pk-primary);
  line-height: 1.35;
}

.promo-kz__empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--pk-muted);
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.promo-kz__empty i {
  display: block;
  font-size: 28px;
  color: var(--pk-primary);
  margin-bottom: 10px;
}

.promo-kz__loading {
  padding: 40px 12px;
  text-align: center;
  color: var(--pk-muted);
  font-size: 13px;
  font-weight: 400;
}

.promo-kz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.promo-kz-modal.is-open { display: block; }
.promo-kz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 59, 0.45);
}
.promo-kz-modal__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(20, 35, 59, 0.08);
}
.promo-kz-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  color: var(--pk-text);
  border-bottom: 1px solid var(--pk-border);
}
.promo-kz-modal__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.promo-kz-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pk-muted);
  font-size: 18px;
  cursor: pointer;
}
.promo-kz-modal__body {
  padding: 14px 16px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.promo-kz-modal__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.promo-kz-modal__thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
}
.promo-kz-modal__content {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--pk-text);
  word-break: break-word;
}

@media (min-width: 501px) {
  .promo-kz__layout {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

body.promo-kz {
  background: #fff !important;
}
