/* web7 News Ticker — барлық ереже .w7nt ішімен шектелген, сайттың басқа элементтеріне әсер етпейді. */
.w7nt {
  --w7nt-accent: #e30613;
  --w7nt-bg: #ffffff;
  --w7nt-text: #111111;
  --w7nt-border: #e2e6ec;
  --w7nt-h: 54px;
  --w7nt-fade: 22px;

  position: relative;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--w7nt-h);
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
  background: var(--w7nt-bg);
  border: 1px solid var(--w7nt-border);
  border-radius: 10px;
  color: var(--w7nt-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  contain: layout paint;
}
.w7nt *,
.w7nt *::before,
.w7nt *::after {
  box-sizing: border-box;
}

/* Сол жақтағы қызыл белгі */
.w7nt .w7nt__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 22px;
  background: var(--w7nt-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.w7nt .w7nt__icon {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

/* Жылжитын аймақ. JS жоқ кезде — өз ішінде көлденең айналдырылады. */
.w7nt .w7nt__viewport {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--w7nt-fade), #000 calc(100% - var(--w7nt-fade)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--w7nt-fade), #000 calc(100% - var(--w7nt-fade)), transparent 100%);
}
.w7nt .w7nt__track {
  display: flex;
  flex: none;
  width: max-content;
  height: 100%;
}
.w7nt ul.w7nt__list {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
  background: none;
  border: 0;
}
.w7nt.w7nt--anim ul.w7nt__list {
  padding-right: 0;
}
.w7nt .w7nt__list > li.w7nt__item {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
  background: none;
  border: 0;
  white-space: nowrap;
}
.w7nt .w7nt__list > li.w7nt__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--w7nt-accent);
}
.w7nt .w7nt__list > li.w7nt__item::marker {
  content: none;
}
.w7nt a.w7nt__link,
.w7nt a.w7nt__link:visited {
  display: inline-block;
  padding: 6px 0;
  color: var(--w7nt-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, .08);
}
.w7nt a.w7nt__link:hover {
  color: var(--w7nt-accent);
  text-decoration: none;
}
.w7nt a.w7nt__link:focus-visible {
  outline: 2px solid var(--w7nt-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* JS іске қосылған кезде */
.w7nt.w7nt--anim .w7nt__viewport {
  overflow: hidden;
}
.w7nt.w7nt--anim .w7nt__track {
  will-change: transform;
}

/* Тоқтату/жалғастыру батырмасы */
.w7nt .w7nt__toggle {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: auto;
  margin: 0;
  padding: 0;
  background: var(--w7nt-bg);
  border: 0;
  border-left: 1px solid var(--w7nt-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--w7nt-text);
  cursor: pointer;
  opacity: .7;
}
.w7nt .w7nt__toggle[hidden] {
  display: none;
}
.w7nt .w7nt__toggle:hover,
.w7nt .w7nt__toggle:focus-visible {
  opacity: 1;
  color: var(--w7nt-accent);
}
.w7nt .w7nt__toggle:focus-visible {
  outline: 2px solid var(--w7nt-accent);
  outline-offset: -4px;
}
.w7nt .w7nt__toggle svg {
  display: block;
  fill: currentColor;
}
.w7nt .w7nt__toggle .w7nt__i-play,
.w7nt .w7nt__toggle[aria-pressed="true"] .w7nt__i-pause {
  display: none;
}
.w7nt .w7nt__toggle[aria-pressed="true"] .w7nt__i-play {
  display: block;
}
.w7nt .w7nt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Мобильді */
@media (max-width: 600px) {
  .w7nt {
    --w7nt-h: 46px;
    --w7nt-fade: 14px;
    margin: 12px 0;
    border-radius: 8px;
  }
  .w7nt .w7nt__label {
    gap: 6px;
    padding: 0 12px;
    font-size: 13px;
  }
  .w7nt .w7nt__icon {
    width: 14px;
    height: 14px;
  }
  .w7nt a.w7nt__link,
  .w7nt a.w7nt__link:visited {
    font-size: 14px;
  }
  .w7nt .w7nt__list > li.w7nt__item {
    padding-left: 28px;
  }
  .w7nt .w7nt__list > li.w7nt__item::before {
    left: 11px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }
  .w7nt .w7nt__toggle {
    width: 40px;
  }
}
@media (max-width: 360px) {
  .w7nt .w7nt__label {
    padding: 0 9px;
    font-size: 12px;
    letter-spacing: .02em;
  }
  .w7nt .w7nt__icon {
    display: none;
  }
}

/* Қозғалыссыз режим: автоматты анимация жоқ, қолмен айналдыру */
@media (prefers-reduced-motion: reduce) {
  .w7nt .w7nt__track {
    transform: none !important;
    will-change: auto;
  }
  .w7nt.w7nt--anim .w7nt__viewport {
    overflow-x: auto;
  }
  .w7nt .w7nt__list[aria-hidden="true"] {
    display: none;
  }
}
