/* Плавный переход между header и features */

/* Добавляем градиент прямо к фону header */
header.header {
    background: 
        linear-gradient(to bottom, 
            transparent 0%, 
            transparent 65%,
            rgba(0, 0, 0, 0.15) 75%,
            rgba(0, 0, 0, 0.4) 85%,
            rgba(0, 0, 0, 0.7) 92%,
            rgba(0, 0, 0, 0.95) 98%,
            rgba(0, 0, 0, 1) 100%
        ),
        url(../img/header-back.png) no-repeat center center !important;
    background-size: cover !important;
}

/* Features с градиентом сверху */
section.features {
    padding-top: 140px !important;
}

section.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 2%,
        rgba(0, 0, 0, 0.7) 8%,
        rgba(0, 0, 0, 0.4) 15%,
        rgba(0, 0, 0, 0.15) 25%,
        transparent 35%
    );
    z-index: 1;
    pointer-events: none;
}

section.features .container {
    position: relative;
}

header.header > .container {
    position: relative;
    z-index: 1;
    z-index: 2;
}

/* ЧЕРНЫЙ градиент в новостном блоке */
.hnsi__back::after {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.6) 75%,
        rgba(0, 0, 0, 0.85) 90%,
        rgba(0, 0, 0, 1) 100%
    ) !important;
}

/* ЧЕРНЫЙ градиент снизу */
.gifts::after {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.85) 10%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    ) !important;
}

/* Меняем цвет стрелок слайдеров с белого на светло-фиолетовый */

/* Черный контур для всех фиолетовых текстов */

/* Контур для заголовков и основных элементов */
.header-welcome__title,
.header-news__title,
.features__title,
.gifts__title,
.stream__title,
.download-item__title,
.news-page__title,
.contacts-subtitle {
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
}

/* Контур для элементов с конкретными фиолетовыми цветами */
[style*="color: #851481"],
[style*="color:#851481"],
[style*="color: #a855f7"],
[style*="color:#a855f7"],
[style*="color: #c084fc"],
[style*="color:#c084fc"],
[style*="color: #d8b4fe"],
[style*="color:#d8b4fe"] {
    -webkit-text-stroke: 1px #000 !important;
    text-stroke: 1px #000 !important;
    paint-order: stroke fill !important;
}

/* Контур для span элементов с фиолетовым текстом */
span[style*="color"] {
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
}

/* Контур для цен и специальных элементов */
.price,
.special-text,
.promo-title,
.admin-role,
.contact-label {
    -webkit-text-stroke: 1px #000 !important;
    text-stroke: 1px #000 !important;
    paint-order: stroke fill !important;
}

/* Усиленный контур для очень светлых фиолетовых */
.admin-role,
[style*="color: #d8b4fe"],
[style*="color:#d8b4fe"] {
    -webkit-text-stroke: 1.5px #000 !important;
    text-stroke: 1.5px #000 !important;
    paint-order: stroke fill !important;
}

/* Контур для ссылок с фиолетовым цветом */
a[style*="color: #"] {
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
}

/* Контур для элементов features */
.features-item__title {
    -webkit-text-stroke: 1px #000 !important;
    text-stroke: 1px #000 !important;
    paint-order: stroke fill !important;
}

/* Контур для стрелок слайдера (они уже фиолетовые) */
.header-news__slider .owl-nav button span,
.features__slider .owl-nav button span,
.gifts__slider .owl-nav button span,
.stream__slider .owl-nav button span {
    -webkit-text-stroke: 1.5px #000 !important;
    text-stroke: 1.5px #000 !important;
    paint-order: stroke fill !important;
}

/* Контур для подзаголовков */
.header-welcome__text {
    -webkit-text-stroke: 0.8px #000;
    text-stroke: 0.8px #000;
    paint-order: stroke fill;
}

/* Контур для кнопок с фиолетовым текстом */
button[style*="color"],
.btn[style*="color"] {
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
}


/* ═══ NEWS SECTION ═══ */
.news-section {
    position: relative;
    padding: 40px 0 100px;
    overflow: hidden;
}
.news-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(var(--accent-rgb),0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== INNER PAGE HEADER ===== */
.header-top__box--inner {
    width: 100%;
    justify-content: flex-start;
}

.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #bcf2fe;
    text-decoration: none;
    border: 1px solid rgba(188, 242, 254, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.header-back-btn:hover {
    color: var(--accent);
    border-color: rgba(0, 220, 100, 0.3);
    background: rgba(0, 220, 100, 0.08);
    text-shadow: 0 0 10px rgba(0, 220, 100, 0.3);
    box-shadow: 0 0 15px rgba(0, 220, 100, 0.08);
}

.header-back-btn svg {
    transition: transform 0.3s ease;
}

.header-back-btn:hover svg {
    transform: translateX(-3px);
}

/* ===== END INNER PAGE HEADER ===== */

/* ===== INNER PAGE COMPACT HEADER ===== */
.wrapper-inner .wrapper__back {
    display: none !important;
}

.wrapper-inner header {
    position: relative;
    padding: 0;
    background: linear-gradient(180deg, rgba(4,7,20,0.97) 0%, rgba(8,12,28,0.95) 100%) !important;
    border-bottom: 1px solid rgba(var(--accent-rgb),0.1);
    min-height: auto !important;
    height: auto !important;
}

.wrapper-inner .header__wrapper {
    min-height: auto !important;
}

.wrapper-inner .header-top {
    position: relative !important;
    padding: 0 40px !important;
}

.wrapper-inner .header-top__center img {
    max-height: 70px;
    width: auto;
}

.wrapper-inner .header-top__left,
.wrapper-inner .header-top__right {
    padding: 20px 0 !important;
}

.wrapper-inner .header-top__left::before,
.wrapper-inner .header-top__left::after,
.wrapper-inner .header-top__right::before,
.wrapper-inner .header-top__right::after {
    display: none !important;
}

/* ===== END INNER PAGE COMPACT HEADER ===== */

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 40px 0 20px;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #bcf2fe;
    text-decoration: none;
    border: 1px solid rgba(188, 242, 254, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.pagination li a:hover {
    color: var(--accent);
    border-color: rgba(0, 220, 100, 0.3);
    background: rgba(0, 220, 100, 0.08);
    text-shadow: 0 0 10px rgba(0, 220, 100, 0.3);
    box-shadow: 0 0 15px rgba(0, 220, 100, 0.08);
}

.pagination li.disabled span {
    color: rgba(188, 242, 254, 0.25);
    border-color: rgba(188, 242, 254, 0.08);
    background: rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
}

.pagination li.active span {
    color: var(--accent);
    border-color: rgba(0, 220, 100, 0.3);
    background: rgba(0, 220, 100, 0.12);
    text-shadow: 0 0 10px rgba(0, 220, 100, 0.3);
}

/* ===== END PAGINATION ===== */

/* Hero section centered layout */
.header-welcome {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 800px !important;
  padding: 240px 0 60px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.header-welcome__title {
  font-size: 52px !important;
  text-transform: none !important;
  text-align: center !important;
  width: 100% !important;
}
.header-welcome__title span {
  font-size: 52px !important;
}
.header-welcome__text {
  text-align: center !important;
  width: 100% !important;
}

/* White title */
.header-welcome__title {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* White subtitle */
.header-welcome__text {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* Hero video background */
header.header {
  background: #000 !important;
  background-image: none !important;
  position: relative !important;
  overflow: hidden !important;
}
.hero-video-bg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: auto !important;
  height: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 0 !important;
  object-fit: cover !important;
  opacity: 0.7;
}
header.header > .container {
  position: relative !important;
  z-index: 2 !important;
}
header.header::after {
  z-index: 3 !important;
}

/* About page - white text */
.text-page .text-area,
.text-page .text-area p,
.text-page .text-area li,
.text-page .text-area span,
.text-page .text-area div {
  color: #f3f4f6 !important;
}
.text-page .text-area h2 {
  color: var(--accent) !important;
}
.text-page .text-area h3 {
  color: #a78bfa !important;
}
.text-page .text-area strong {
  color: #ffffff !important;
}

/* Inner pages - white title */
.news-page__title.header-news__title {
  color: #ffffff !important;
}

/* Inner page titles white */
.news-page__title.header-news__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

/* About page title white */
.text-page .news-page__title.header-news__title {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* About page section headings white */
.text-page .text-area h2 {
  color: #ffffff !important;
}

/* About page - hide video and welcome from header */
.wrapper-inner .hero-video-bg,
.wrapper-inner .header-welcome,
.wrapper-inner .header-welcome__bottom {
  display: none !important;
}

/* Fix boss dropdown clipping on inner pages */
.wrapper-inner header.header {
  overflow: visible !important;
}

/* Ladder page - reduce top padding */
.wrapper-inner .text-page.ladder-page {
  padding-top: 100px !important;
}
